postgresqloracle-databaseadapterpostgres-fdworacle-fdw

Replace Oracle db with Postgres db , add an adapter


I have a source code querying an Oracle database.

Is it possible to replace the Oracle database by a PostgreSQL database without modifying the source code ?

I thought about adding an adapter/wrapper module between my source code and the PostgreSQL db for the source code to be compatible with PostgreSQL.

Thanks


Solution

  • PostgreSQL is strict about ISO SQL standard implementation. Most recent Oracle versions are also compliant. Oracle usually implemented some feature long before it was standardized therefor their dialects is slightly different. Nowadays various SQL features have duplicate implementation in Oracle, an original one a ISO one.