Iāve been doing some migration work; porting a Db2 database to a PostgreSQL one. You could say that is going from an Enterprise strength solution to a simpler, but less expensive option, but itās not a choice Iām in a position to ignore.
Customers are being presented with a wealth of database options as they migrate to the Cloud, and many of them are embracing the options of simpler and less licence hungry products.
There are many positives to PostgreSQL but there are some pitfalls in attempting such a migration.
Here are a few notes.
Syntax
There are a few syntactical differences that Iāve stumbled over, but I suspect there are a lot more. Some examples are
Date functions e.g. YEAR arenāt available. To extract the Year from a Date or Timestamp youād use
EXTRACT( YEAR from CURRENT_DATE ) or
DATE_PART(āyearā, CURRENT_DATE ) ā 1
Date differences: in Db2 you might use
FULL BLOG POST TO BE FOUND HERE