Unfortunately, ERPNext does not support PostgreSQL, and there are no plans to do so in the near future.
The Frappe framework by itself (mostly) supports PostgreSQL for custom projects, but not the ERPNext application.
There are a few threads that cover this, such as: