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