# Running: pg_createsubscriber --help [02:19:07.523](0.034s) ok 1 - pg_createsubscriber --help exit code 0 [02:19:07.523](0.000s) ok 2 - pg_createsubscriber --help goes to stdout [02:19:07.523](0.000s) ok 3 - pg_createsubscriber --help nothing to stderr [02:19:07.523](0.000s) ok 4 - pg_createsubscriber --help maximum line length # Running: pg_createsubscriber --version [02:19:07.546](0.022s) ok 5 - pg_createsubscriber --version exit code 0 [02:19:07.546](0.000s) ok 6 - pg_createsubscriber --version goes to stdout [02:19:07.546](0.000s) ok 7 - pg_createsubscriber --version nothing to stderr # Running: pg_createsubscriber --not-a-valid-option [02:19:07.557](0.011s) ok 8 - pg_createsubscriber with invalid option nonzero exit code [02:19:07.557](0.000s) ok 9 - pg_createsubscriber with invalid option prints error message # Running: pg_createsubscriber pg_createsubscriber: error: no subscriber data directory specified pg_createsubscriber: hint: Try "pg_createsubscriber --help" for more information. [02:19:07.592](0.035s) ok 10 - no subscriber data directory specified # Running: pg_createsubscriber --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_BWyO pg_createsubscriber: error: no publisher connection string specified pg_createsubscriber: hint: Try "pg_createsubscriber --help" for more information. [02:19:07.608](0.016s) ok 11 - no publisher connection string specified # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_BWyO --publisher-server port=5432 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: no database was specified pg_createsubscriber: error: no database name specified pg_createsubscriber: hint: Try "pg_createsubscriber --help" for more information. [02:19:07.615](0.007s) ok 12 - no database name specified # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_BWyO --publisher-server port=5432 --database pg1 --database pg1 pg_createsubscriber: error: duplicate database "pg1" [02:19:07.624](0.009s) ok 13 - duplicate database name # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_BWyO --publisher-server port=5432 --publication foo1 --publication foo1 --database pg1 --database pg2 pg_createsubscriber: error: duplicate publication "foo1" [02:19:07.664](0.040s) ok 14 - duplicate publication name # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_BWyO --publisher-server port=5432 --publication foo1 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: error: wrong number of publication names pg_createsubscriber: hint: Number of publication names (1) must match number of database names (2). [02:19:07.693](0.029s) ok 15 - wrong number of publication names # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_BWyO --publisher-server port=5432 --publication foo1 --publication foo2 --subscription bar1 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: error: wrong number of subscription names pg_createsubscriber: hint: Number of subscription names (1) must match number of database names (2). [02:19:07.717](0.023s) ok 16 - wrong number of subscription names # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_BWyO --publisher-server port=5432 --publication foo1 --publication foo2 --subscription bar1 --subscription bar2 --replication-slot baz1 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: error: wrong number of replication slot names pg_createsubscriber: hint: Number of replication slot names (1) must match number of database names (2). [02:19:07.741](0.025s) ok 17 - wrong number of replication slot names # Checking port 59038 # Found port 59038 Name: node_p Data directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/archives Connection string: port=59038 host=/tmp/gCZcfROd4g Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_p.log [02:19:07.754](0.013s) # initializing database system by copying initdb template # Running: cp -RPp /tmp/cirrus-ci-build/build/tmp_install/initdb-template /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/pgdata # Running: /tmp/cirrus-ci-build/build/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/pgdata ### Starting node "node_p" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_p.log -o --cluster-name=node_p start waiting for server to start.... done server started # Postmaster PID for node "node_p" is 37030 # Checking port 59039 # Found port 59039 Name: node_f Data directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/archives Connection string: port=59039 host=/tmp/gCZcfROd4g Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_f.log [02:19:08.047](0.293s) # initializing database system by running initdb # Running: initdb -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/pgdata -A trust -N The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with this locale configuration: locale provider: libc LC_COLLATE: C.UTF-8 LC_CTYPE: C.UTF-8 LC_MESSAGES: C LC_MONETARY: C.UTF-8 LC_NUMERIC: C.UTF-8 LC_TIME: C.UTF-8 The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/pgdata ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Etc/UTC creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok Sync to disk skipped. The data directory might become corrupt if the operating system crashes. Success. You can now start the database server using: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/pgdata -l logfile start # Running: /tmp/cirrus-ci-build/build/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/pgdata # Taking pg_basebackup backup_1 from node "node_p" # Running: pg_basebackup -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/backup/backup_1 -h /tmp/gCZcfROd4g -p 59038 --checkpoint fast --no-sync # Backup finished # Checking port 59040 # Found port 59040 Name: node_s Data directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/archives Connection string: port=59040 host=/tmp/gCZcfROd4g Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_s.log # Initializing node "node_s" from backup "backup_1" of node "node_p" ### Enabling streaming replication for node "node_s" ### Starting node "node_s" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_s.log -o --cluster-name=node_s start waiting for server to start.... done server started # Postmaster PID for node "node_s" is 37488 # Checking port 59041 # Found port 59041 Name: node_t Data directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/archives Connection string: port=59041 host=/tmp/gCZcfROd4g Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_t.log # Initializing node "node_t" from backup "backup_1" of node "node_p" ### Enabling streaming replication for node "node_t" ### Starting node "node_t" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_t.log -o --cluster-name=node_t start waiting for server to start.... done server started # Postmaster PID for node "node_t" is 37603 ### Promoting node "node_t" # Running: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_t.log promote waiting for server to promote.... done server promoted ### Stopping node "node_t" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/pgdata -m fast stop waiting for server to shut down.... done server stopped # No postmaster PID for node "node_t" # Running: pg_createsubscriber --verbose --dry-run --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/pgdata --publisher-server port=59038 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59041 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/pgdata" is a cluster data directory pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360880953160726070 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-23 02:19:11.529 UTC [37699][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:11.529 UTC [37699][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59041" 2024-04-23 02:19:11.540 UTC [37706][startup] LOG: database system was shut down at 2024-04-23 02:19:11 UTC 2024-04-23 02:19:11.543 UTC [37699][postmaster] LOG: database system is ready to accept connections pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-23 02:19:11.615 UTC [37728][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:11.616 UTC [37728][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_t_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:11.616 UTC [37728][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:11.623 UTC [37728][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:11.624 UTC [37728][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() pg_createsubscriber: error: target server must be a standby 2024-04-23 02:19:11.624 UTC [37728][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.008 user=postgres database=pg1 host=[local] 2024-04-23 02:19:11.647 UTC [37699][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:11.648 UTC [37699][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:11.649 UTC [37699][postmaster] LOG: background worker "logical replication launcher" (PID 37716) exited with exit code 1 2024-04-23 02:19:11.649 UTC [37703][checkpointer] LOG: shutting down 2024-04-23 02:19:11.649 UTC [37703][checkpointer] LOG: checkpoint starting: shutdown immediate 2024-04-23 02:19:11.650 UTC [37703][checkpointer] LOG: checkpoint complete: wrote 6 buffers (4.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.001 s, sync=0.001 s, total=0.001 s; sync files=0, longest=0.000 s, average=0.000 s; distance=17 kB, estimate=17 kB; lsn=0/30046A0, redo lsn=0/30046A0 2024-04-23 02:19:11.651 UTC [37699][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [02:19:11.653](3.605s) ok 18 - target server is not in recovery # Running: pg_createsubscriber --verbose --dry-run --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata --publisher-server port=59038 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59040 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata" is a cluster data directory pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360880953160726070 on subscriber pg_createsubscriber: error: standby is up and running pg_createsubscriber: hint: Stop the standby and try again. [02:19:11.707](0.054s) ok 19 - standby is up and running # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/pgdata --publisher-server port=59038 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59039 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_f_data/pgdata" is a cluster data directory pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360881374112116982 on subscriber pg_createsubscriber: error: subscriber data directory is not a copy of the source database cluster [02:19:11.797](0.091s) ok 20 - subscriber data directory is not a copy of the source database cluster # Taking pg_basebackup backup_2 from node "node_s" # Running: pg_basebackup -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/backup/backup_2 -h /tmp/gCZcfROd4g -p 59040 --checkpoint fast --no-sync # Backup finished # Checking port 59042 # Found port 59042 Name: node_c Data directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_c_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_c_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_c_data/archives Connection string: port=59042 host=/tmp/gCZcfROd4g Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_c.log # Initializing node "node_c" from backup "backup_2" of node "node_s" ### Enabling streaming replication for node "node_c" # Running: pg_createsubscriber --verbose --dry-run --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_c_data/pgdata --publisher-server port=59040 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59042 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_c_data/pgdata" is a cluster data directory pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360880953160726070 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-23 02:19:12.351 UTC [37914][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:12.351 UTC [37914][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59042" 2024-04-23 02:19:12.353 UTC [37918][startup] LOG: database system was interrupted while in recovery at log time 2024-04-23 02:19:10 UTC 2024-04-23 02:19:12.353 UTC [37918][startup] HINT: If this has occurred more than once some data might be corrupted and you might need to choose an earlier recovery target. 2024-04-23 02:19:12.353 UTC [37918][startup] LOG: starting backup recovery with redo LSN 0/2000028, checkpoint LSN 0/2000080, on timeline ID 1 2024-04-23 02:19:12.353 UTC [37918][startup] LOG: entering standby mode 2024-04-23 02:19:12.354 UTC [37918][startup] LOG: redo starts at 0/2000028 2024-04-23 02:19:12.354 UTC [37918][startup] LOG: completed backup recovery with redo LSN 0/2000028 and end LSN 0/2000120 2024-04-23 02:19:12.354 UTC [37918][startup] LOG: consistent recovery state reached at 0/3000000 2024-04-23 02:19:12.354 UTC [37914][postmaster] LOG: database system is ready to accept read-only connections 2024-04-23 02:19:12.357 UTC [37919][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-23 02:19:12.436 UTC [37924][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:12.437 UTC [37924][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_c_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:12.437 UTC [37924][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:12.442 UTC [37924][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:12.443 UTC [37924][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-23 02:19:12.443 UTC [37924][client backend] [040_pg_createsubscriber.pl][0/4:0] LOG: statement: SELECT setting FROM pg_catalog.pg_settings WHERE name IN ('max_logical_replication_workers', 'max_replication_slots', 'max_worker_processes', 'primary_slot_name') ORDER BY name pg_createsubscriber: checking settings on publisher 2024-04-23 02:19:12.446 UTC [37924][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.011 user=postgres database=pg1 host=[local] pg_createsubscriber: error: primary server cannot be in recovery 2024-04-23 02:19:12.469 UTC [37914][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:12.469 UTC [37914][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:12.471 UTC [37919][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-23 02:19:12.473 UTC [37916][checkpointer] LOG: shutting down 2024-04-23 02:19:12.474 UTC [37914][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [02:19:12.570](0.773s) ok 21 - primary server is in recovery Waiting for replication conn node_s's replay_lsn to pass 0/3000110 on node_p done ### Restarting node "node_p" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_p.log restart waiting for server to shut down.... done server stopped waiting for server to start.... done server started # Postmaster PID for node "node_p" is 38008 ### Stopping node "node_s" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata -m fast stop waiting for server to shut down.... done server stopped # No postmaster PID for node "node_s" # Running: pg_createsubscriber --verbose --dry-run --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata --publisher-server port=59038 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59040 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata" is a cluster data directory pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360880953160726070 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-23 02:19:13.293 UTC [38082][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:13.313 UTC [38082][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59040" 2024-04-23 02:19:13.317 UTC [38090][startup] LOG: database system was shut down in recovery at 2024-04-23 02:19:12 UTC 2024-04-23 02:19:13.318 UTC [38090][startup] LOG: entering standby mode 2024-04-23 02:19:13.319 UTC [38090][startup] LOG: consistent recovery state reached at 0/3000188 2024-04-23 02:19:13.319 UTC [38090][startup] LOG: invalid record length at 0/3000188: expected at least 24, got 0 2024-04-23 02:19:13.319 UTC [38082][postmaster] LOG: database system is ready to accept read-only connections pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-23 02:19:13.320 UTC [38093][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:13.320 UTC [38093][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:13.320 UTC [38093][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:13.325 UTC [38093][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:13.326 UTC [38093][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-23 02:19:13.326 UTC [38093][client backend] [040_pg_createsubscriber.pl][0/4:0] LOG: statement: SELECT setting FROM pg_catalog.pg_settings WHERE name IN ('max_logical_replication_workers', 'max_replication_slots', 'max_worker_processes', 'primary_slot_name') ORDER BY name pg_createsubscriber: checking settings on publisher 2024-04-23 02:19:13.328 UTC [38093][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.008 user=postgres database=pg1 host=[local] 2024-04-23 02:19:13.332 UTC [38092][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-23 02:19:13.332 UTC [38090][startup] LOG: redo starts at 0/3000188 pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: error: publisher requires wal_level >= "logical" pg_createsubscriber: error: publisher requires 2 replication slots, but only 0 remain pg_createsubscriber: hint: Consider increasing max_replication_slots to at least 3. pg_createsubscriber: error: publisher requires 2 wal sender processes, but only 0 remain pg_createsubscriber: hint: Consider increasing max_wal_senders to at least 3. 2024-04-23 02:19:13.340 UTC [38082][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:13.340 UTC [38082][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:13.340 UTC [38092][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-23 02:19:13.342 UTC [38088][checkpointer] LOG: shutting down 2024-04-23 02:19:13.344 UTC [38082][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [02:19:13.441](0.871s) ok 22 - primary contains unmet conditions on node P # Running: pg_createsubscriber --verbose --dry-run --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata --publisher-server port=59038 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59040 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata" is a cluster data directory pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360880953160726070 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-23 02:19:13.602 UTC [38136][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:13.610 UTC [38136][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59040" 2024-04-23 02:19:13.705 UTC [38162][startup] LOG: database system was shut down in recovery at 2024-04-23 02:19:13 UTC 2024-04-23 02:19:13.705 UTC [38162][startup] LOG: entering standby mode 2024-04-23 02:19:13.706 UTC [38162][startup] LOG: redo starts at 0/3000188 2024-04-23 02:19:13.706 UTC [38162][startup] LOG: invalid magic number 0000 in WAL segment 000000010000000000000003, LSN 0/3004000, offset 16384 2024-04-23 02:19:13.706 UTC [38162][startup] LOG: consistent recovery state reached at 0/3002758 2024-04-23 02:19:13.706 UTC [38162][startup] LOG: invalid magic number 0000 in WAL segment 000000010000000000000003, LSN 0/3004000, offset 16384 2024-04-23 02:19:13.706 UTC [38136][postmaster] LOG: database system is ready to accept read-only connections 2024-04-23 02:19:13.719 UTC [38165][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-23 02:19:13.735 UTC [38172][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:13.736 UTC [38172][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:13.736 UTC [38172][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:13.741 UTC [38172][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:13.742 UTC [38172][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-23 02:19:13.744 UTC [38172][client backend] [040_pg_createsubscriber.pl][0/4:0] LOG: statement: SELECT setting FROM pg_catalog.pg_settings WHERE name IN ('max_logical_replication_workers', 'max_replication_slots', 'max_worker_processes', 'primary_slot_name') ORDER BY name pg_createsubscriber: error: subscriber requires 2 replication slots, but only 1 remain pg_createsubscriber: hint: Consider increasing max_replication_slots to at least 2. pg_createsubscriber: error: subscriber requires 2 logical replication workers, but only 1 remain pg_createsubscriber: hint: Consider increasing max_logical_replication_workers to at least 2. pg_createsubscriber: error: subscriber requires 3 worker processes, but only 2 remain pg_createsubscriber: hint: Consider increasing max_worker_processes to at least 3. 2024-04-23 02:19:13.756 UTC [38172][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.023 user=postgres database=pg1 host=[local] 2024-04-23 02:19:13.784 UTC [38136][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:13.784 UTC [38136][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:13.785 UTC [38165][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-23 02:19:13.786 UTC [38160][checkpointer] LOG: shutting down 2024-04-23 02:19:13.788 UTC [38136][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [02:19:13.887](0.446s) ok 23 - standby contains unmet conditions on node S ### Restarting node "node_p" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_p.log restart waiting for server to shut down... done server stopped waiting for server to start.... done server started # Postmaster PID for node "node_p" is 38213 # Running: pg_createsubscriber --verbose --dry-run --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata --publisher-server port=59038 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59040 --publication pub1 --publication pub2 --subscription sub1 --subscription sub2 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata" is a cluster data directory pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360880953160726070 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-23 02:19:14.073 UTC [38286][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:14.073 UTC [38286][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59040" 2024-04-23 02:19:14.075 UTC [38293][startup] LOG: database system was shut down in recovery at 2024-04-23 02:19:13 UTC 2024-04-23 02:19:14.075 UTC [38293][startup] LOG: entering standby mode 2024-04-23 02:19:14.077 UTC [38293][startup] LOG: redo starts at 0/3000188 2024-04-23 02:19:14.077 UTC [38293][startup] LOG: consistent recovery state reached at 0/30046C0 2024-04-23 02:19:14.077 UTC [38286][postmaster] LOG: database system is ready to accept read-only connections 2024-04-23 02:19:14.077 UTC [38293][startup] LOG: invalid record length at 0/30046C0: expected at least 24, got 0 2024-04-23 02:19:14.082 UTC [38294][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-23 02:19:14.168 UTC [38339][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:14.168 UTC [38339][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:14.168 UTC [38339][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:14.187 UTC [38339][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:14.188 UTC [38339][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-23 02:19:14.188 UTC [38339][client backend] [040_pg_createsubscriber.pl][0/4:0] LOG: statement: SELECT setting FROM pg_catalog.pg_settings WHERE name IN ('max_logical_replication_workers', 'max_replication_slots', 'max_worker_processes', 'primary_slot_name') ORDER BY name pg_createsubscriber: checking settings on publisher 2024-04-23 02:19:14.191 UTC [38339][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.023 user=postgres database=pg1 host=[local] pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: stopping the subscriber 2024-04-23 02:19:14.228 UTC [38286][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:14.228 UTC [38286][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:14.231 UTC [38294][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-23 02:19:14.233 UTC [38291][checkpointer] LOG: shutting down 2024-04-23 02:19:14.233 UTC [38291][checkpointer] LOG: restartpoint starting: shutdown immediate 2024-04-23 02:19:14.233 UTC [38291][checkpointer] LOG: restartpoint complete: wrote 4 buffers (3.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.001 s, sync=0.001 s, total=0.001 s; sync files=0, longest=0.000 s, average=0.000 s; distance=17 kB, estimate=17 kB; lsn=0/30046C0, redo lsn=0/30046C0 2024-04-23 02:19:14.233 UTC [38291][checkpointer] LOG: recovery restart point at 0/30046C0 2024-04-23 02:19:14.235 UTC [38286][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: creating publication "pub1" on database "pg1" pg_createsubscriber: creating the replication slot "sub1" on database "pg1" pg_createsubscriber: create replication slot "sub1" on publisher pg_createsubscriber: creating publication "pub2" on database "pg2" pg_createsubscriber: creating the replication slot "sub2" on database "pg2" pg_createsubscriber: create replication slot "sub2" on publisher pg_createsubscriber: starting the subscriber 2024-04-23 02:19:14.464 UTC [38407][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:14.464 UTC [38407][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59040" 2024-04-23 02:19:14.492 UTC [38416][startup] LOG: database system was shut down in recovery at 2024-04-23 02:19:14 UTC 2024-04-23 02:19:14.493 UTC [38416][startup] LOG: entering standby mode 2024-04-23 02:19:14.494 UTC [38416][startup] LOG: redo starts at 0/3004738 2024-04-23 02:19:14.494 UTC [38416][startup] LOG: consistent recovery state reached at 0/3004770 2024-04-23 02:19:14.494 UTC [38416][startup] LOG: invalid record length at 0/3004770: expected at least 24, got 0 2024-04-23 02:19:14.494 UTC [38407][postmaster] LOG: database system is ready to accept read-only connections 2024-04-23 02:19:14.523 UTC [38418][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 pg_createsubscriber: server was started pg_createsubscriber: waiting for the target server to reach the consistent state 2024-04-23 02:19:14.564 UTC [38435][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:14.565 UTC [38435][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:14.565 UTC [38435][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:14.582 UTC [38435][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:14.584 UTC [38435][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() pg_createsubscriber: target server reached the consistent state pg_createsubscriber: hint: If pg_createsubscriber fails after this point, you must recreate the physical replica before continuing. 2024-04-23 02:19:14.585 UTC [38435][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.023 user=postgres database=pg1 host=[local] 2024-04-23 02:19:14.597 UTC [38438][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:14.598 UTC [38438][client backend] [[unknown]][1/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:14.598 UTC [38438][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:14.599 UTC [38438][client backend] [040_pg_createsubscriber.pl][1/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); pg_createsubscriber: dropping publication "pub1" on database "pg1" pg_createsubscriber: creating subscription "sub1" on database "pg1" 2024-04-23 02:19:14.599 UTC [38438][client backend] [040_pg_createsubscriber.pl][1/3:0] LOG: statement: SELECT s.oid FROM pg_catalog.pg_subscription s INNER JOIN pg_catalog.pg_database d ON (s.subdbid = d.oid) WHERE s.subname = 'sub1' AND d.datname = 'pg1' pg_createsubscriber: setting the replication progress (node name "pg_0" ; LSN 0/0) on database "pg1" pg_createsubscriber: enabling subscription "sub1" on database "pg1" 2024-04-23 02:19:14.601 UTC [38438][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.003 user=postgres database=pg1 host=[local] 2024-04-23 02:19:14.603 UTC [38443][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:14.603 UTC [38443][client backend] [[unknown]][2/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:14.603 UTC [38443][client backend] [[unknown]][2/1:0] LOG: connection authorized: user=postgres database=pg2 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:14.628 UTC [38443][client backend] [040_pg_createsubscriber.pl][2/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); pg_createsubscriber: dropping publication "pub2" on database "pg2" pg_createsubscriber: creating subscription "sub2" on database "pg2" 2024-04-23 02:19:14.629 UTC [38443][client backend] [040_pg_createsubscriber.pl][2/3:0] LOG: statement: SELECT s.oid FROM pg_catalog.pg_subscription s INNER JOIN pg_catalog.pg_database d ON (s.subdbid = d.oid) WHERE s.subname = 'sub2' AND d.datname = 'pg2' pg_createsubscriber: setting the replication progress (node name "pg_0" ; LSN 0/0) on database "pg2" pg_createsubscriber: enabling subscription "sub2" on database "pg2" 2024-04-23 02:19:14.703 UTC [38443][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.100 user=postgres database=pg2 host=[local] pg_createsubscriber: dropping the replication slot "physical_slot" on database "pg1" pg_createsubscriber: stopping the subscriber 2024-04-23 02:19:14.732 UTC [38407][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:14.732 UTC [38407][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:14.733 UTC [38418][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-23 02:19:14.736 UTC [38414][checkpointer] LOG: shutting down 2024-04-23 02:19:14.739 UTC [38407][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: modifying system identifier of subscriber pg_createsubscriber: system identifier is 7360881402470065510 on subscriber pg_createsubscriber: running pg_resetwal on the subscriber pg_createsubscriber: Done! [02:19:14.836](0.949s) ok 24 - run pg_createsubscriber --dry-run on node S ### Starting node "node_s" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_s.log -o --cluster-name=node_s start waiting for server to start.... done server started # Postmaster PID for node "node_s" is 38489 [02:19:15.031](0.195s) ok 25 - standby is in recovery ### Stopping node "node_s" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata -m fast stop waiting for server to shut down... done server stopped # No postmaster PID for node "node_s" # Running: pg_createsubscriber --verbose --dry-run --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata --publisher-server port=59038 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59040 --replication-slot replslot1 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: no database was specified pg_createsubscriber: database "pg1" was extracted from the publisher connection string pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata" is a cluster data directory pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360880953160726070 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-23 02:19:15.217 UTC [38549][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:15.218 UTC [38549][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59040" 2024-04-23 02:19:15.224 UTC [38559][startup] LOG: database system was shut down in recovery at 2024-04-23 02:19:15 UTC 2024-04-23 02:19:15.225 UTC [38559][startup] LOG: entering standby mode 2024-04-23 02:19:15.226 UTC [38559][startup] LOG: redo starts at 0/3004738 2024-04-23 02:19:15.226 UTC [38559][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-23 02:19:15.226 UTC [38559][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-23 02:19:15.226 UTC [38549][postmaster] LOG: database system is ready to accept read-only connections 2024-04-23 02:19:15.237 UTC [38561][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-23 02:19:15.315 UTC [38574][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:15.316 UTC [38574][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:15.316 UTC [38574][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:15.329 UTC [38574][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:15.330 UTC [38574][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-23 02:19:15.331 UTC [38574][client backend] [040_pg_createsubscriber.pl][0/4:0] LOG: statement: SELECT setting FROM pg_catalog.pg_settings WHERE name IN ('max_logical_replication_workers', 'max_replication_slots', 'max_worker_processes', 'primary_slot_name') ORDER BY name pg_createsubscriber: checking settings on publisher 2024-04-23 02:19:15.338 UTC [38574][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.023 user=postgres database=pg1 host=[local] pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: stopping the subscriber 2024-04-23 02:19:15.385 UTC [38549][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:15.386 UTC [38549][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:15.386 UTC [38561][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-23 02:19:15.389 UTC [38557][checkpointer] LOG: shutting down 2024-04-23 02:19:15.392 UTC [38549][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: creating publication "pg_createsubscriber_16384_d5dab0ad" on database "pg1" pg_createsubscriber: creating the replication slot "replslot1" on database "pg1" pg_createsubscriber: create replication slot "replslot1" on publisher pg_createsubscriber: starting the subscriber 2024-04-23 02:19:15.577 UTC [38610][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:15.629 UTC [38610][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59040" 2024-04-23 02:19:15.631 UTC [38615][startup] LOG: database system was shut down in recovery at 2024-04-23 02:19:15 UTC 2024-04-23 02:19:15.702 UTC [38615][startup] LOG: entering standby mode 2024-04-23 02:19:15.703 UTC [38615][startup] LOG: redo starts at 0/3004738 2024-04-23 02:19:15.703 UTC [38615][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-23 02:19:15.703 UTC [38610][postmaster] LOG: database system is ready to accept read-only connections 2024-04-23 02:19:15.703 UTC [38615][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-23 02:19:15.707 UTC [38617][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 pg_createsubscriber: server was started pg_createsubscriber: waiting for the target server to reach the consistent state 2024-04-23 02:19:15.833 UTC [38627][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:15.834 UTC [38627][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:15.834 UTC [38627][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:15.878 UTC [38627][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:15.879 UTC [38627][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() pg_createsubscriber: target server reached the consistent state pg_createsubscriber: hint: If pg_createsubscriber fails after this point, you must recreate the physical replica before continuing. 2024-04-23 02:19:15.880 UTC [38627][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.046 user=postgres database=pg1 host=[local] 2024-04-23 02:19:15.881 UTC [38631][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:15.882 UTC [38631][client backend] [[unknown]][1/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:15.882 UTC [38631][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:15.882 UTC [38631][client backend] [040_pg_createsubscriber.pl][1/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); pg_createsubscriber: dropping publication "pg_createsubscriber_16384_d5dab0ad" on database "pg1" pg_createsubscriber: creating subscription "pg_createsubscriber_16384_d5dab0ad" on database "pg1" 2024-04-23 02:19:15.883 UTC [38631][client backend] [040_pg_createsubscriber.pl][1/3:0] LOG: statement: SELECT s.oid FROM pg_catalog.pg_subscription s INNER JOIN pg_catalog.pg_database d ON (s.subdbid = d.oid) WHERE s.subname = 'pg_createsubscriber_16384_d5dab0ad' AND d.datname = 'pg1' pg_createsubscriber: setting the replication progress (node name "pg_0" ; LSN 0/0) on database "pg1" pg_createsubscriber: enabling subscription "pg_createsubscriber_16384_d5dab0ad" on database "pg1" 2024-04-23 02:19:15.885 UTC [38631][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.003 user=postgres database=pg1 host=[local] pg_createsubscriber: dropping the replication slot "physical_slot" on database "pg1" pg_createsubscriber: stopping the subscriber 2024-04-23 02:19:15.890 UTC [38610][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:15.890 UTC [38610][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:15.892 UTC [38617][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-23 02:19:15.894 UTC [38613][checkpointer] LOG: shutting down 2024-04-23 02:19:15.895 UTC [38610][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: modifying system identifier of subscriber pg_createsubscriber: system identifier is 7360881407015609982 on subscriber pg_createsubscriber: running pg_resetwal on the subscriber pg_createsubscriber: Done! [02:19:15.897](0.866s) ok 26 - run pg_createsubscriber without --databases # Running: pg_createsubscriber --verbose --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata --publisher-server port=59038 host=/tmp/gCZcfROd4g dbname='pg1' --socket-directory /tmp/gCZcfROd4g --subscriber-port 59040 --publication pub1 --publication Pub2 --replication-slot replslot1 --replication-slot replslot2 --database pg1 --database pg2 pg_createsubscriber: validating connection string on publisher pg_createsubscriber: validating connection string on subscriber pg_createsubscriber: pg_ctl path is: /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/pg_ctl pg_createsubscriber: pg_resetwal path is: /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/pg_resetwal pg_createsubscriber: checking if directory "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata" is a cluster data directory pg_createsubscriber: publisher(0): publication: pub1 ; replication slot: replslot1 ; connection string: host=/tmp/gCZcfROd4g port=59038 dbname=pg1 pg_createsubscriber: subscriber(0): subscription: (auto) ; connection string: port=59040 host=/tmp/gCZcfROd4g fallback_application_name=pg_createsubscriber dbname=pg1 pg_createsubscriber: publisher(1): publication: Pub2 ; replication slot: replslot2 ; connection string: host=/tmp/gCZcfROd4g port=59038 dbname=pg2 pg_createsubscriber: subscriber(1): subscription: (auto) ; connection string: port=59040 host=/tmp/gCZcfROd4g fallback_application_name=pg_createsubscriber dbname=pg2 pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7360880953160726070 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7360880953160726070 on subscriber pg_createsubscriber: starting the standby with command-line options pg_createsubscriber: pg_ctl command is: "/tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/pg_ctl" start -D "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata" -s -o "-p 59040" -o "-c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directories='/tmp/gCZcfROd4g'" 2024-04-23 02:19:15.942 UTC [38654][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-23 02:19:15.942 UTC [38654][postmaster] LOG: listening on Unix socket "/tmp/gCZcfROd4g/.s.PGSQL.59040" 2024-04-23 02:19:15.997 UTC [38662][startup] LOG: database system was shut down in recovery at 2024-04-23 02:19:15 UTC 2024-04-23 02:19:16.005 UTC [38662][startup] LOG: entering standby mode 2024-04-23 02:19:16.006 UTC [38662][startup] LOG: redo starts at 0/3004738 2024-04-23 02:19:16.006 UTC [38662][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-23 02:19:16.006 UTC [38654][postmaster] LOG: database system is ready to accept read-only connections 2024-04-23 02:19:16.006 UTC [38662][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-23 02:19:16.030 UTC [38667][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-23 02:19:16.031 UTC [38667][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata/pg_hba.conf:117) 2024-04-23 02:19:16.031 UTC [38667][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-23 02:19:16.036 UTC [38667][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-23 02:19:16.036 UTC [38667][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-23 02:19:16.036 UTC [38667][client backend] [040_pg_createsubscriber.pl][0/4:0] LOG: statement: SELECT setting FROM pg_catalog.pg_settings WHERE name IN ('max_logical_replication_workers', 'max_replication_slots', 'max_worker_processes', 'primary_slot_name') ORDER BY name pg_createsubscriber: subscriber: max_logical_replication_workers: 4 pg_createsubscriber: subscriber: max_replication_slots: 10 pg_createsubscriber: subscriber: max_worker_processes: 8 pg_createsubscriber: subscriber: primary_slot_name: physical_slot pg_createsubscriber: checking settings on publisher 2024-04-23 02:19:16.039 UTC [38667][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.009 user=postgres database=pg1 host=[local] pg_createsubscriber: publisher: wal_level: logical pg_createsubscriber: publisher: max_replication_slots: 10 pg_createsubscriber: publisher: current replication slots: 1 pg_createsubscriber: publisher: max_wal_senders: 10 pg_createsubscriber: publisher: current wal senders: 1 pg_createsubscriber: command is: SELECT 1 FROM pg_catalog.pg_replication_slots WHERE active AND slot_name = 'physical_slot' pg_createsubscriber: error: could not obtain replication slot information: got 0 rows, expected 1 row pg_createsubscriber: pg_ctl command is: "/tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/pg_ctl" stop -D "/tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata" -s 2024-04-23 02:19:16.052 UTC [38666][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-23 02:19:16.053 UTC [38654][postmaster] LOG: received fast shutdown request 2024-04-23 02:19:16.053 UTC [38654][postmaster] LOG: aborting any active transactions 2024-04-23 02:19:16.053 UTC [38666][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-23 02:19:16.054 UTC [38660][checkpointer] LOG: shutting down 2024-04-23 02:19:16.056 UTC [38654][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [02:19:16.155](0.258s) not ok 27 - run pg_createsubscriber on node S [02:19:16.155](0.000s) # Failed test 'run pg_createsubscriber on node S' # at /tmp/cirrus-ci-build/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl line 297. [02:19:16.167](0.012s) not ok 28 - the physical replication slot used as primary_slot_name has been removed [02:19:16.167](0.000s) # Failed test 'the physical replication slot used as primary_slot_name has been removed' # at /tmp/cirrus-ci-build/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl line 318. [02:19:16.168](0.000s) # got: '1' # expected: '0' ### Starting node "node_s" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_s.log -o --cluster-name=node_s start waiting for server to start.... done server started # Postmaster PID for node "node_s" is 38689 Waiting for all subscriptions in "node_s" to synchronize data subscription name must be specified at /tmp/cirrus-ci-build/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl line 337. # Postmaster PID for node "node_p" is 38213 ### Stopping node "node_p" using mode immediate # Running: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_p_data/pgdata -m immediate stop waiting for server to shut down.... done server stopped # No postmaster PID for node "node_p" # No postmaster PID for node "node_f" # Postmaster PID for node "node_s" is 38689 ### Stopping node "node_s" using mode immediate # Running: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/t_040_pg_createsubscriber_node_s_data/pgdata -m immediate stop waiting for server to shut down.... done server stopped # No postmaster PID for node "node_s" # No postmaster PID for node "node_t" # No postmaster PID for node "node_c" [02:19:16.767](0.599s) # Tests were run but no plan was declared and done_testing() was not seen. [02:19:16.767](0.000s) # Looks like your test exited with 29 just after 28.