Local installations of Flow Production Tracking are no longer offered. This documentation is intended only for those with existing instances of Shotgun Enterprise Docker. Click here for a list of our current offerings.
ContentsTHIS PROCEDURE APPLIES TO FLOW PRODUCTION TRACKING ENTERPRISE DOCKER. FLOW PRODUCTION TRACKING ENTERPRISE CLASSIC DOES NOT SUPPORT POSTGRESQL 15.
First, contact support to get the latest recommended PostgreSQL major version for Flow Production Tracking.
Upgrading PostgreSQL is a major operation that requires careful planning. This operation is disruptive and will result in significant downtime at your Studio.
WE STRONGLY RECOMMEND UPGRADING YOUR STAGING DATABASE CLUSTER FIRST.
Depending on the method you use to upgrade PostgreSQL, it may be better to proceed with a backup of the the database that you will be able to rollback to in case of failure.
ALWAYS MAKE SURE YOU CAN ROLLBACK BEFORE UPDATING PRODUCTION.
Upgrading PostgreSQL is not an operation that is Flow Production Tracking specific. A lot of great resources are available on the web for how to proceed. Here are some useful references:
There are many ways to upgrade a PostgreSQL cluster. The best strategy depends on your specific situation. Flow Production Tracking recommends:
pg_upgrade without the --link argument if the downtime is acceptable. This is the safest and easiest way as it allows to rollback without a prior backup.pg_upgrade --link if your database is huge and downtime using the without --link approach takes too much time.As underlined in the PostgreSQL documentation, some steps may be required after the upgrade. If this is the case, it will be clearly indicated by warnings issued in the upgrade process.
Remove maintenance on all the Application/API servers.
Make a generic regression pass, testing your important pipeline steps, scripts, Web App, etc. Be on the lookout for performance regressions.
Right after the upgrade, Flow Production Tracking may feel a bit slower because everything may not be cached yet by PostgreSQL. This is normal, but should dissipate with usage.
If you are running a dbops container, change the Docker Compose file for this container to match the version of PostgreSQL you just installed.
dbops:
image: postgres:15sudo vi /var/lib/postgresql/data/pg_hba.conf
# Edit with the following:
# For postgres versions >=9.1
local all all peer
# For old postgres versions
local all all ident Roll back instructions are detailed in the Postgres Wiki.
MAKE SURE TO TAKE THE REQUIRED PRECAUTIONS BEFORE UPGRADING TO MAKE SURE ROLLBACK IS POSSIBLE.