2ndQuadrant / pglogical

Logical Replication extension for PostgreSQL 17, 16, 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
1.01k stars 154 forks source link

Many REFRESH MATERIALIZED VIEW at publisher causes out of disk space #480

Open dusatvoj opened 4 months ago

dusatvoj commented 4 months ago

Hello, I have database which I want to replicate to another cluster. I created replication and added all tables from public schema.

select pglogical.replication_set_add_all_tables('default', ARRAY['public'],true);

In other schema are materialized views, created from tables in public. The MV are refreshing every hour.

Now I have to stop replication due to a problem that MVs are not recognized correctly by pglogical and LSN is not updated in replication slot and this causes out of disk space.

image (at monitoring, you can see that everything looks fine but the MVs are dealbreaker)


Am I doing anything wrong? Do I have to add replication also to other schemas?