-
Notifications
You must be signed in to change notification settings - Fork 175
Description
I continue getting the same crash problem - #446 & #367 while syncing non-partition tables to partition based tables in latest pglogical version 2.4.6 as well.
2025-11-02 07:25:56.842 UTC [2651842] LOG: background worker "pglogical apply 16593:2528659118" (PID 1158871) was terminated by signal 11: Segmentation fault
Already tried the workaround by adding the non-partition table in the provider again with synchronize_data := false however this doesn't fix the issue.
SELECT pglogical.replication_set_add_table(
set_name := 'repset',
relation := 'public.part',
synchronize_data := false
);
SELECT pglogical.replication_set_add_all_tables(
set_name := 'repset',
schema_names := ARRAY['public'],
synchronize_data := false
);
I understand the schema mismatch can cause problems but there should be some better way to handle such in consistency related error as this cause continuous crash on subscriber node due to which impossible to run any query/command there. The only solution we found to stop the node from crashing is stopping the subscriber node and then dropping the slot from the publisher.
source=# SELECT slot_name, active, restart_lsn
FROM pg_replication_slots
WHERE slot_name LIKE '%s_rep%';
slot_name | active | restart_lsn
------------------------+--------+-------------
pgl_target__ode1_s_rep | t | 0/1B7D230
(1 row)
SELECT pg_drop_replication_slot('pgl_target__ode1_s_rep');
I tested this scenario on multiple versions of both pglogical and postgres however the outcome was same crash.
pglogical versions (2.4.4, 2.4.5, 2.4.6)
PostgreSQL versions (16.X, 17.x)