2026-05-06 15:00:41.409 UTC postmaster[16603] LOG: starting PostgreSQL 19devel on x86_64-openbsd, compiled by clang-16.0.6, 64-bit 2026-05-06 15:00:41.416 UTC postmaster[16603] LOG: listening on Unix socket "/tmp/cE1SpGJQzl/.s.PGSQL.25320" 2026-05-06 15:00:41.426 UTC startup[69308] LOG: database system was shut down at 2026-05-06 14:51:52 UTC 2026-05-06 15:00:41.485 UTC postmaster[16603] LOG: database system is ready to accept connections 2026-05-06 15:00:41.734 UTC client backend[11387] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:41.741 UTC client backend[11387] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:41.741 UTC client backend[11387] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:41.801 UTC client backend[11387] 029_on_error.pl LOG: connection ready: setup total=69.015 ms, fork=0.925 ms, authentication=3.915 ms 2026-05-06 15:00:41.813 UTC client backend[11387] 029_on_error.pl LOG: statement: CREATE TABLE tbl (i INT PRIMARY KEY, t BYTEA); 2026-05-06 15:00:41.832 UTC client backend[11387] 029_on_error.pl LOG: statement: INSERT INTO tbl VALUES (1, NULL); 2026-05-06 15:00:41.836 UTC client backend[11387] 029_on_error.pl LOG: disconnection: session time: 0:00:00.103 user=postgres database=postgres host=[local] 2026-05-06 15:00:41.934 UTC client backend[13252] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:41.946 UTC client backend[13252] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:41.946 UTC client backend[13252] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:41.949 UTC client backend[13252] 029_on_error.pl LOG: connection ready: setup total=18.469 ms, fork=0.805 ms, authentication=10.443 ms 2026-05-06 15:00:41.950 UTC client backend[13252] 029_on_error.pl LOG: statement: CREATE SUBSCRIPTION sub CONNECTION 'port=25319 host=/tmp/cE1SpGJQzl dbname=postgres' PUBLICATION pub WITH (disable_on_error = true, streaming = on, two_phase = on) 2026-05-06 15:00:41.993 UTC client backend[13252] 029_on_error.pl LOG: disconnection: session time: 0:00:00.061 user=postgres database=postgres host=[local] 2026-05-06 15:00:42.012 UTC logical replication apply worker[80144] LOG: logical replication apply worker for subscription "sub" has started 2026-05-06 15:00:42.031 UTC client backend[95667] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:42.033 UTC client backend[95667] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:42.033 UTC client backend[95667] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:42.062 UTC client backend[95667] 029_on_error.pl LOG: connection ready: setup total=34.180 ms, fork=2.027 ms, authentication=0.597 ms 2026-05-06 15:00:42.062 UTC logical replication tablesync worker[23062] LOG: logical replication table synchronization worker for subscription "sub", table "tbl" has started 2026-05-06 15:00:42.063 UTC client backend[95667] 029_on_error.pl LOG: statement: SELECT subenabled = false FROM pg_catalog.pg_subscription WHERE subname = 'sub' 2026-05-06 15:00:42.071 UTC client backend[95667] 029_on_error.pl LOG: disconnection: session time: 0:00:00.041 user=postgres database=postgres host=[local] 2026-05-06 15:00:42.127 UTC logical replication tablesync worker[23062] ERROR: duplicate key value violates unique constraint "tbl_pkey" 2026-05-06 15:00:42.127 UTC logical replication tablesync worker[23062] DETAIL: Key (i)=(1) already exists. 2026-05-06 15:00:42.127 UTC logical replication tablesync worker[23062] CONTEXT: COPY tbl, line 1 2026-05-06 15:00:42.128 UTC logical replication tablesync worker[23062] LOG: subscription "sub" has been disabled because of an error 2026-05-06 15:00:42.134 UTC logical replication apply worker[80144] LOG: logical replication worker for subscription "sub" will stop because the subscription was disabled 2026-05-06 15:00:42.262 UTC client backend[88067] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:42.265 UTC client backend[88067] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:42.265 UTC client backend[88067] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:42.273 UTC client backend[88067] 029_on_error.pl LOG: connection ready: setup total=13.187 ms, fork=0.659 ms, authentication=0.464 ms 2026-05-06 15:00:42.274 UTC client backend[88067] 029_on_error.pl LOG: statement: SELECT subenabled = false FROM pg_catalog.pg_subscription WHERE subname = 'sub' 2026-05-06 15:00:42.277 UTC client backend[88067] 029_on_error.pl LOG: disconnection: session time: 0:00:00.015 user=postgres database=postgres host=[local] 2026-05-06 15:00:42.319 UTC client backend[52465] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:42.321 UTC client backend[52465] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:42.321 UTC client backend[52465] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:42.324 UTC client backend[52465] 029_on_error.pl LOG: connection ready: setup total=7.704 ms, fork=1.148 ms, authentication=0.648 ms 2026-05-06 15:00:42.326 UTC client backend[52465] 029_on_error.pl LOG: statement: TRUNCATE tbl 2026-05-06 15:00:42.332 UTC client backend[52465] 029_on_error.pl LOG: disconnection: session time: 0:00:00.013 user=postgres database=postgres host=[local] 2026-05-06 15:00:42.470 UTC client backend[99239] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:42.480 UTC client backend[99239] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:42.480 UTC client backend[99239] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:42.482 UTC client backend[99239] 029_on_error.pl LOG: connection ready: setup total=14.489 ms, fork=0.769 ms, authentication=0.583 ms 2026-05-06 15:00:42.485 UTC client backend[99239] 029_on_error.pl LOG: statement: ALTER SUBSCRIPTION sub ENABLE 2026-05-06 15:00:42.487 UTC client backend[99239] 029_on_error.pl LOG: disconnection: session time: 0:00:00.018 user=postgres database=postgres host=[local] 2026-05-06 15:00:42.501 UTC logical replication apply worker[49047] LOG: logical replication apply worker for subscription "sub" has started 2026-05-06 15:00:42.514 UTC client backend[36813] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:42.519 UTC client backend[36813] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:42.519 UTC client backend[36813] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:42.530 UTC client backend[36813] 029_on_error.pl LOG: connection ready: setup total=17.240 ms, fork=0.850 ms, authentication=0.695 ms 2026-05-06 15:00:42.533 UTC client backend[36813] 029_on_error.pl LOG: statement: SELECT count(1) = 0 FROM pg_subscription_rel WHERE srsubstate NOT IN ('r', 's'); 2026-05-06 15:00:42.541 UTC client backend[36813] 029_on_error.pl LOG: disconnection: session time: 0:00:00.027 user=postgres database=postgres host=[local] 2026-05-06 15:00:42.543 UTC logical replication tablesync worker[50103] LOG: logical replication table synchronization worker for subscription "sub", table "tbl" has started 2026-05-06 15:00:42.638 UTC logical replication tablesync worker[50103] LOG: logical replication table synchronization worker for subscription "sub", table "tbl" has finished 2026-05-06 15:00:42.688 UTC logical replication apply worker[49047] LOG: logical replication apply worker for subscription "sub" will restart so that two_phase can be enabled 2026-05-06 15:00:42.690 UTC client backend[17545] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:42.696 UTC client backend[17545] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:42.696 UTC client backend[17545] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:42.698 UTC client backend[17545] 029_on_error.pl LOG: connection ready: setup total=27.501 ms, fork=17.561 ms, authentication=4.034 ms 2026-05-06 15:00:42.701 UTC client backend[17545] 029_on_error.pl LOG: statement: SELECT count(1) = 0 FROM pg_subscription_rel WHERE srsubstate NOT IN ('r', 's'); 2026-05-06 15:00:42.705 UTC client backend[17545] 029_on_error.pl LOG: disconnection: session time: 0:00:00.016 user=postgres database=postgres host=[local] 2026-05-06 15:00:42.711 UTC logical replication apply worker[53246] LOG: logical replication apply worker for subscription "sub" has started 2026-05-06 15:00:42.913 UTC client backend[79872] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:42.916 UTC client backend[79872] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:42.918 UTC client backend[79872] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:42.921 UTC client backend[79872] 029_on_error.pl LOG: connection ready: setup total=11.871 ms, fork=2.791 ms, authentication=2.941 ms 2026-05-06 15:00:42.932 UTC client backend[79872] 029_on_error.pl LOG: statement: SELECT COUNT(*) FROM tbl 2026-05-06 15:00:42.942 UTC client backend[79872] 029_on_error.pl LOG: disconnection: session time: 0:00:00.030 user=postgres database=postgres host=[local] TRAP: failed Assert("conflictlogrel != NULL"), File: "../src/backend/replication/logical/conflict.c", Line: 195, PID: 53246 0x9c0639ba59f at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c06377b37a at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c0635f85d8 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c0635f7f06 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c06379ff25 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c0637a1469 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c0637a228f at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c0637a1fc4 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c0637432bb at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c06374839f at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c06374bcb3 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c06374d7d5 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c06374ae5e at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x9c063660ee5 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 2026-05-06 15:00:43.193 UTC client backend[80361] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:43.215 UTC client backend[80361] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:43.215 UTC client backend[80361] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:43.261 UTC client backend[80361] 029_on_error.pl LOG: connection ready: setup total=78.965 ms, fork=8.032 ms, authentication=13.007 ms 2026-05-06 15:00:43.263 UTC client backend[80361] 029_on_error.pl LOG: statement: SELECT subenabled = FALSE FROM pg_subscription WHERE subname = 'sub' 2026-05-06 15:00:43.269 UTC client backend[80361] 029_on_error.pl LOG: disconnection: session time: 0:00:00.078 user=postgres database=postgres host=[local] 2026-05-06 15:00:43.422 UTC client backend[97247] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:43.428 UTC client backend[97247] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:43.428 UTC client backend[97247] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:43.431 UTC client backend[97247] 029_on_error.pl LOG: connection ready: setup total=13.626 ms, fork=2.486 ms, authentication=0.972 ms 2026-05-06 15:00:43.433 UTC client backend[97247] 029_on_error.pl LOG: statement: SELECT subenabled = FALSE FROM pg_subscription WHERE subname = 'sub' 2026-05-06 15:00:43.440 UTC client backend[97247] 029_on_error.pl LOG: disconnection: session time: 0:00:00.020 user=postgres database=postgres host=[local] 2026-05-06 15:00:43.583 UTC client backend[17254] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:43.622 UTC client backend[17254] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:43.622 UTC client backend[17254] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:43.628 UTC client backend[17254] 029_on_error.pl LOG: connection ready: setup total=52.171 ms, fork=3.031 ms, authentication=2.351 ms 2026-05-06 15:00:43.629 UTC client backend[17254] 029_on_error.pl LOG: statement: SELECT subenabled = FALSE FROM pg_subscription WHERE subname = 'sub' 2026-05-06 15:00:43.643 UTC client backend[17254] 029_on_error.pl LOG: disconnection: session time: 0:00:00.064 user=postgres database=postgres host=[local] 2026-05-06 15:00:43.799 UTC client backend[21252] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:43.805 UTC client backend[21252] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:43.805 UTC client backend[21252] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:43.807 UTC client backend[21252] 029_on_error.pl LOG: connection ready: setup total=9.557 ms, fork=0.707 ms, authentication=3.678 ms 2026-05-06 15:00:43.809 UTC client backend[21252] 029_on_error.pl LOG: statement: SELECT subenabled = FALSE FROM pg_subscription WHERE subname = 'sub' 2026-05-06 15:00:43.815 UTC client backend[21252] 029_on_error.pl LOG: disconnection: session time: 0:00:00.016 user=postgres database=postgres host=[local] 2026-05-06 15:00:43.993 UTC client backend[42586] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:43.995 UTC client backend[42586] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:43.995 UTC client backend[42586] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:43.999 UTC client backend[42586] 029_on_error.pl LOG: connection ready: setup total=10.490 ms, fork=3.574 ms, authentication=0.515 ms 2026-05-06 15:00:44.039 UTC client backend[42586] 029_on_error.pl LOG: statement: SELECT subenabled = FALSE FROM pg_subscription WHERE subname = 'sub' 2026-05-06 15:00:44.050 UTC client backend[42586] 029_on_error.pl LOG: disconnection: session time: 0:00:00.057 user=postgres database=postgres host=[local] 2026-05-06 15:00:44.204 UTC client backend[24200] [unknown] LOG: connection received: host=[local] 2026-05-06 15:00:44.207 UTC client backend[24200] [unknown] LOG: connection authenticated: user="postgres" method=trust (/home/postgres/postgres/build/testrun/subscription/029_on_error/data/t_029_on_error_subscriber_data/pgdata/pg_hba.conf:117) 2026-05-06 15:00:44.207 UTC client backend[24200] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 15:00:44.211 UTC client backend[24200] 029_on_error.pl LOG: connection ready: setup total=9.135 ms, fork=1.395 ms, authentication=0.597 ms 2026-05-06 15:00:44.213 UTC client backend[24200] 029_on_error.pl LOG: statement: SELECT subenabled = FALSE FROM pg_subscription WHERE subname = 'sub' 2026-05-06 15:00:44.219 UTC client backend[24200] 029_on_error.pl LOG: disconnection: session time: 0:00:00.015 user=postgres database=postgres host=[local] 2026-05-06 15:00:44.247 UTC postmaster[16603] LOG: background worker "logical replication apply worker" (PID 53246) was terminated by signal 6: Abort trap 2026-05-06 15:00:44.247 UTC postmaster[16603] LOG: terminating any other active server processes 2026-05-06 15:00:44.304 UTC postmaster[16603] LOG: shutting down because "restart_after_crash" is off 2026-05-06 15:00:44.396 UTC postmaster[16603] LOG: database system is shut down