Open justabaka opened 1 year ago
That's because of the way we loop over database objects to sync. The order of the DB query is alphabetical, but the go loop makes it random, I believe.
Ideally we should not return an error on failure but just collect error message and continue with the next extension. This way your problem would go away automatically on subsequent syncs. We do this already for database users but not here.
There are certain extensions that have other extensions as dependencies, e.g. I want to install
postgis
,postgis_raster
andpostgis_topology
extensions. Thepostgis_topology
requirespostgis
but it is not always installed first. Yes, sometimes it seems to be happening in a correct way, but the whole process feels completely random and may take a lot of attempts and time.postgresql cluster crd:
postgres-operator log messages:
In order to make it work all the time from the first try there should be a strict order of installation.