ERPNext itself does not officially support PostgreSQL as its database backend; it is primarily designed to work with MariaDB/MySQL. The Frappe Framework, which ERPNext is built on, has some level of PostgreSQL support, but ERPNext has many SQL queries (around 1300) that are specifically tailored for MariaDB/MySQL and would require significant verification and modification to work correctly with PostgreSQL[1][4].
Key Points:
- Frappe Framework supports PostgreSQL, but ERPNext does not fully support it out of the box due to many MariaDB-specific SQL queries and features[1][4].
- There are ongoing discussions and some experimental efforts to add PostgreSQL support to ERPNext, but it is not production-ready and would require substantial development and testing[4].
- Some community members have attempted to configure ERPNext/Frappe with PostgreSQL by manually setting up PostgreSQL databases and users and adjusting configuration files, but this is complex and may lead to errors or incomplete functionality[3].
- Official ERPNext deployment guides and Docker setups typically use MariaDB as the database, and most installation instructions assume MariaDB/MySQL as the backend[5][6][7].
Summary
While it is technically possible to deploy ERPNext with PostgreSQL by leveraging the Frappe Framework's PostgreSQL capabilities and making custom adjustments, ERPNext itself does not officially support PostgreSQL and using it in production with PostgreSQL is not recommended without significant custom development and testing. The default and supported database for ERPNext remains MariaDB/MySQL.
If you want to use PostgreSQL, you would need to:
- Use Frappe Framework configured for PostgreSQL.
- Manually create PostgreSQL users and databases.
- Modify ERPNext to handle PostgreSQL-specific SQL differences.
- Expect to encounter and fix many SQL compatibility issues.
For stable and supported deployments, MariaDB/MySQL is the advised choice.
This means if your goal is a straightforward, stable ERPNext deployment, stick with MariaDB. If you are prepared for development effort and testing, PostgreSQL integration is possible but experimental and unsupported officially.