2026-05-06 14:54:05.798 UTC postmaster[12673] LOG: starting PostgreSQL 19devel on x86_64-netbsd, compiled by gcc-10.5.0, 64-bit 2026-05-06 14:54:05.798 UTC postmaster[12673] LOG: listening on Unix socket "/tmp/MxrnPJ8lgm/.s.PGSQL.20583" 2026-05-06 14:54:05.802 UTC startup[4759] LOG: database system was shut down at 2026-05-06 14:50:16 UTC 2026-05-06 14:54:05.805 UTC postmaster[12673] LOG: database system is ready to accept connections 2026-05-06 14:54:05.918 UTC client backend[8678] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:05.919 UTC client backend[8678] [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 14:54:05.919 UTC client backend[8678] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:05.927 UTC client backend[8678] 029_on_error.pl LOG: connection ready: setup total=12.707 ms, fork=3.632 ms, authentication=0.388 ms 2026-05-06 14:54:05.927 UTC client backend[8678] 029_on_error.pl LOG: statement: CREATE TABLE tbl (i INT PRIMARY KEY, t BYTEA); 2026-05-06 14:54:05.933 UTC client backend[8678] 029_on_error.pl LOG: statement: INSERT INTO tbl VALUES (1, NULL); 2026-05-06 14:54:05.933 UTC client backend[8678] 029_on_error.pl LOG: disconnection: session time: 0:00:00.015 user=postgres database=postgres host=[local] 2026-05-06 14:54:05.966 UTC client backend[1998] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:05.967 UTC client backend[1998] [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 14:54:05.967 UTC client backend[1998] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:05.969 UTC client backend[1998] 029_on_error.pl LOG: connection ready: setup total=4.252 ms, fork=0.467 ms, authentication=0.461 ms 2026-05-06 14:54:05.970 UTC client backend[1998] 029_on_error.pl LOG: statement: CREATE SUBSCRIPTION sub CONNECTION 'port=20582 host=/tmp/MxrnPJ8lgm dbname=postgres' PUBLICATION pub WITH (disable_on_error = true, streaming = on, two_phase = on) 2026-05-06 14:54:05.988 UTC client backend[1998] 029_on_error.pl LOG: disconnection: session time: 0:00:00.022 user=postgres database=postgres host=[local] 2026-05-06 14:54:05.998 UTC client backend[12184] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:05.999 UTC logical replication apply worker[21279] LOG: logical replication apply worker for subscription "sub" has started 2026-05-06 14:54:05.999 UTC client backend[12184] [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 14:54:05.999 UTC client backend[12184] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:06.001 UTC client backend[12184] 029_on_error.pl LOG: connection ready: setup total=3.176 ms, fork=0.417 ms, authentication=0.277 ms 2026-05-06 14:54:06.001 UTC client backend[12184] 029_on_error.pl LOG: statement: SELECT subenabled = false FROM pg_catalog.pg_subscription WHERE subname = 'sub' 2026-05-06 14:54:06.002 UTC client backend[12184] 029_on_error.pl LOG: disconnection: session time: 0:00:00.004 user=postgres database=postgres host=[local] 2026-05-06 14:54:06.012 UTC logical replication tablesync worker[5354] LOG: logical replication table synchronization worker for subscription "sub", table "tbl" has started 2026-05-06 14:54:06.022 UTC logical replication tablesync worker[5354] ERROR: duplicate key value violates unique constraint "tbl_pkey" 2026-05-06 14:54:06.022 UTC logical replication tablesync worker[5354] DETAIL: Key (i)=(1) already exists. 2026-05-06 14:54:06.022 UTC logical replication tablesync worker[5354] CONTEXT: COPY tbl, line 1 2026-05-06 14:54:06.023 UTC logical replication tablesync worker[5354] LOG: subscription "sub" has been disabled because of an error 2026-05-06 14:54:06.025 UTC logical replication apply worker[21279] LOG: logical replication worker for subscription "sub" will stop because the subscription was disabled 2026-05-06 14:54:06.124 UTC client backend[11320] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:06.125 UTC client backend[11320] [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 14:54:06.126 UTC client backend[11320] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:06.128 UTC client backend[11320] 029_on_error.pl LOG: connection ready: setup total=3.983 ms, fork=0.480 ms, authentication=0.299 ms 2026-05-06 14:54:06.128 UTC client backend[11320] 029_on_error.pl LOG: statement: SELECT subenabled = false FROM pg_catalog.pg_subscription WHERE subname = 'sub' 2026-05-06 14:54:06.129 UTC client backend[11320] 029_on_error.pl LOG: disconnection: session time: 0:00:00.005 user=postgres database=postgres host=[local] 2026-05-06 14:54:06.140 UTC client backend[9146] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:06.141 UTC client backend[9146] [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 14:54:06.141 UTC client backend[9146] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:06.143 UTC client backend[9146] 029_on_error.pl LOG: connection ready: setup total=3.328 ms, fork=0.486 ms, authentication=0.283 ms 2026-05-06 14:54:06.143 UTC client backend[9146] 029_on_error.pl LOG: statement: TRUNCATE tbl 2026-05-06 14:54:06.146 UTC client backend[9146] 029_on_error.pl LOG: disconnection: session time: 0:00:00.005 user=postgres database=postgres host=[local] 2026-05-06 14:54:06.159 UTC client backend[6813] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:06.160 UTC client backend[6813] [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 14:54:06.160 UTC client backend[6813] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:06.161 UTC client backend[6813] 029_on_error.pl LOG: connection ready: setup total=4.075 ms, fork=0.711 ms, authentication=0.308 ms 2026-05-06 14:54:06.162 UTC client backend[6813] 029_on_error.pl LOG: statement: ALTER SUBSCRIPTION sub ENABLE 2026-05-06 14:54:06.162 UTC client backend[6813] 029_on_error.pl LOG: disconnection: session time: 0:00:00.004 user=postgres database=postgres host=[local] 2026-05-06 14:54:06.170 UTC logical replication apply worker[11863] LOG: logical replication apply worker for subscription "sub" has started 2026-05-06 14:54:06.185 UTC logical replication tablesync worker[22012] LOG: logical replication table synchronization worker for subscription "sub", table "tbl" has started 2026-05-06 14:54:06.188 UTC client backend[29035] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:06.189 UTC client backend[29035] [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 14:54:06.189 UTC client backend[29035] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:06.191 UTC client backend[29035] 029_on_error.pl LOG: connection ready: setup total=3.851 ms, fork=0.588 ms, authentication=0.312 ms 2026-05-06 14:54:06.191 UTC client backend[29035] 029_on_error.pl LOG: statement: SELECT count(1) = 0 FROM pg_subscription_rel WHERE srsubstate NOT IN ('r', 's'); 2026-05-06 14:54:06.193 UTC client backend[29035] 029_on_error.pl LOG: disconnection: session time: 0:00:00.005 user=postgres database=postgres host=[local] 2026-05-06 14:54:06.199 UTC logical replication tablesync worker[22012] LOG: logical replication table synchronization worker for subscription "sub", table "tbl" has finished 2026-05-06 14:54:06.204 UTC logical replication apply worker[11863] LOG: logical replication apply worker for subscription "sub" will restart so that two_phase can be enabled 2026-05-06 14:54:06.211 UTC logical replication apply worker[11981] LOG: logical replication apply worker for subscription "sub" has started 2026-05-06 14:54:06.312 UTC client backend[23589] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:06.313 UTC client backend[23589] [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 14:54:06.313 UTC client backend[23589] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:06.315 UTC client backend[23589] 029_on_error.pl LOG: connection ready: setup total=3.274 ms, fork=0.459 ms, authentication=0.284 ms 2026-05-06 14:54:06.315 UTC client backend[23589] 029_on_error.pl LOG: statement: SELECT count(1) = 0 FROM pg_subscription_rel WHERE srsubstate NOT IN ('r', 's'); 2026-05-06 14:54:06.316 UTC client backend[23589] 029_on_error.pl LOG: disconnection: session time: 0:00:00.004 user=postgres database=postgres host=[local] 2026-05-06 14:54:06.384 UTC client backend[11493] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:06.388 UTC client backend[11493] [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 14:54:06.388 UTC client backend[11493] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:06.390 UTC client backend[11493] 029_on_error.pl LOG: connection ready: setup total=6.289 ms, fork=0.510 ms, authentication=2.604 ms 2026-05-06 14:54:06.392 UTC client backend[11493] 029_on_error.pl LOG: statement: SELECT COUNT(*) FROM tbl 2026-05-06 14:54:06.395 UTC client backend[11493] 029_on_error.pl LOG: disconnection: session time: 0:00:00.010 user=postgres database=postgres host=[local] TRAP: failed Assert("conflictlogrel != NULL"), File: "../src/backend/replication/logical/conflict.c", Line: 195, PID: 11981 2026-05-06 14:54:06.429 UTC client backend[27000] [unknown] LOG: connection received: host=[local] 2026-05-06 14:54:06.431 UTC client backend[27000] [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 14:54:06.431 UTC client backend[27000] [unknown] LOG: connection authorized: user=postgres database=postgres application_name=029_on_error.pl 2026-05-06 14:54:06.433 UTC client backend[27000] 029_on_error.pl LOG: connection ready: setup total=4.317 ms, fork=0.480 ms, authentication=0.328 ms 2026-05-06 14:54:06.433 UTC client backend[27000] 029_on_error.pl LOG: statement: SELECT subenabled = FALSE FROM pg_subscription WHERE subname = 'sub' 0x964414 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x79c115 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x66075d at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x661526 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x7bd1f4 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x7be898 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x7beede at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x76c02f at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x770342 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x771ba0 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x77315b at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0x775845 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 0xaf2af4 at /home/postgres/postgres/build/tmp_install/usr/local/pgsql/bin/postgres 2026-05-06 14:54:06.434 UTC client backend[27000] 029_on_error.pl LOG: disconnection: session time: 0:00:00.005 user=postgres database=postgres host=[local] 2026-05-06 14:54:06.457 UTC postmaster[12673] LOG: background worker "logical replication apply worker" (PID 11981) was terminated by signal 6: Abort trap 2026-05-06 14:54:06.457 UTC postmaster[12673] LOG: terminating any other active server processes 2026-05-06 14:54:06.458 UTC postmaster[12673] LOG: shutting down because "restart_after_crash" is off 2026-05-06 14:54:06.461 UTC postmaster[12673] LOG: database system is shut down