Open ivan opened 7 months ago
Creating the catalog table pg_ivm_immv
in pg_catalog is useful in the sense that it can be easily accessed without considering search_path, but I've found some problem. In addition to the permission problem you reported, data in pg_catalog are not copied by pg_upgrade. Technically, we can allow pg_upgrade to create a table in pg_catalog, and provide some method to copy data at upgrading, but I might be better to place the catalog table in other schema in future.
Is the best way to continue the upgrade to drop the extension and then create it again after the upgrade? Or is there some modification we can make to the schemas that is safe for upgrading (e.g. drop the catalog table?)
In my upgrades from PostgreSQL 14.7 -> 15.2 and PostgreSQL 15.5 -> 16.1 on NixOS, I noticed that having pg_ivm in the database prevents
pg_upgrade
from succeeding. The upgrade succeeds only after dropping the extension from the old cluster.The relevant part in the second log below is: