2ndQuadrant / pglogical

Logical Replication extension for PostgreSQL 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4 (Postgres), providing much faster replication than Slony, Bucardo or Londiste, as well as cross-version upgrades.
http://2ndquadrant.com/en/resources/pglogical/
Other
987 stars 153 forks source link

pglogical restore from Google AlloyDB fails due to "google_columnar_engine" dependency #462

Closed bnol closed 6 months ago

bnol commented 6 months ago

Description

I'm attempting data migration from AlloyDB to standard PostgreSQL using pglogical. My AlloyDB database contains the AlloyDB-specific "google_columnar_engine" extension.

During a pg_restore of my AlloyDB backup, followed by pglogical replication, I encounter the error "extension "google_columnar_engine" is not available".

I've verified that none of my application's tables, views, or functions directly use features of this extension except for the views that are created by AlloyDB in the public schema. However, removing the extension nor the views from AlloyDB is not possible due to database permissions.

Challenges:

Questions:

  1. Exclude specific view objects during the replication process?
  2. Configure pglogical to ignore extension-related statements during restore?

Environment

Additional Notes:

bnol commented 6 months ago

solved by setting synchronize_structure to false and synchronize the schema manually :)