Frappe Framework has support for both MariaDB and Postgres. ERPNext does not have support for Postgres. While queries are mostly similar, there are 1300 SQL queries that need to be verified and checked. Thankfully we have unit-tests.
Steps:
- Setup tests for postgres (similar to Frappe Framework)
- Makes sure the tests pass for all queries
If there are problems in certain SQL queries:
- Use the ORM
- Rewrite the query so that it will work for both databases
- Use
frappe.db.multi_sql to write separate queries for each platform (for complex joins)
Frappe Framework has support for both MariaDB and Postgres. ERPNext does not have support for Postgres. While queries are mostly similar, there are 1300 SQL queries that need to be verified and checked. Thankfully we have unit-tests.
Steps:
If there are problems in certain SQL queries:
frappe.db.multi_sqlto write separate queries for each platform (for complex joins)