Itgenpsr067: Primary keys were found for ... tables, but the associated tables were not found. on PostgreSQL 14

When connecting to a database with a PostgreSQL 14-based data container the following error can occur:

itgenpsr003: Could not load all metadata.

Followed by:

itgenpsr067: Primary keys were found for 60 tables, but the associated tables were not found.
Please check that the user can actually query tables or views in the database

This is caused by changes in the internal structure of PostgreSQL.

Please upgrade to version 22.0.177 or newer.