You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the PostgreSQL cluster c1 in dev-c1 namespace on an OpenShift environment. Recently, OpenShift was upgraded from version 4.12 to 4.14. After the upgrade, I restored data for the entire dev-c1 namespace. Once all the pods were started, I noticed the following error messages in the pgo pod logs:
It seems that the database initialization was being executed repeatedly, but I’m not sure why this was happening. After I commented out the databaseInitSQL section in the postgrescluster configuration, the error was gone.
Environment
Platform: OpenShift
Platform Version: 4.14
PGO Image Tag: ubi8-5.2.0-0
Postgresql version: 14.6
The text was updated successfully, but these errors were encountered:
Hi @Eric-zch, it sounds like your Database Initialization SQL was erroring when it was being run for the newly restored PostgresCluster, indicating an issue with the SQL script. And my guess is that your script is not idempotent.
In some cases, due to how Kubernetes treats PostgresCluster status, PGO may run your SQL commands more than once. Please ensure that the commands defined in your init SQL are idempotent.
Overview
I installed the PostgreSQL cluster c1 in dev-c1 namespace on an OpenShift environment. Recently, OpenShift was upgraded from version 4.12 to 4.14. After the upgrade, I restored data for the entire dev-c1 namespace. Once all the pods were started, I noticed the following error messages in the pgo pod logs:
It seems that the database initialization was being executed repeatedly, but I’m not sure why this was happening. After I commented out the databaseInitSQL section in the postgrescluster configuration, the error was gone.
Environment
The text was updated successfully, but these errors were encountered: