Closed PisikeSipelgas closed 1 year ago
It has nothing to do with pglogical. You are using native logical replication. AFAICS the table spatial_ref_sys
should be excluded from the publication. It is part of the PostGIS extension and it is populated by CREATE EXTENSION. Don't use FOR ALL TABLES if you have extensions that create tables. Instead, explicitly inform the tables or use TABLE IN SCHEMA (Postgres 15 or later). Other alternative is to truncate the referred tables on the subscriber before creating the subscription.
Hi, Alright. I'll try to truncate. Thanks for the hint. Regards,
Update: at first i did'nt get what You ment with "It has nothing to do with pglogical. You are using native logical replication. " It took me several minutes to fully comprehend what You ment. And this is even more valuable hint than truncate. Thank You so much for clarifying!
Hello,
I have problem with pglogical when trying to migrate database with postgis extension to new server. Following is an illustrative example with empty database.
From shell migrating globals/roles and schemas like this:
On target host:
And now the problem appears:
I do understand the problem from both sides (pglogical and postgis), but it's like hitting a wall of dead end. Is there a reasonable way to overcome this?