# Running: pg_createsubscriber --help [12:03:27.437](0.044s) ok 1 - pg_createsubscriber --help exit code 0 [12:03:27.437](0.000s) ok 2 - pg_createsubscriber --help goes to stdout [12:03:27.438](0.000s) ok 3 - pg_createsubscriber --help nothing to stderr [12:03:27.438](0.000s) ok 4 - pg_createsubscriber --help maximum line length # Running: pg_createsubscriber --version [12:03:27.456](0.019s) ok 5 - pg_createsubscriber --version exit code 0 [12:03:27.456](0.000s) ok 6 - pg_createsubscriber --version goes to stdout [12:03:27.457](0.000s) ok 7 - pg_createsubscriber --version nothing to stderr # Running: pg_createsubscriber --not-a-valid-option [12:03:27.471](0.014s) ok 8 - pg_createsubscriber with invalid option nonzero exit code [12:03:27.471](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. [12:03:27.484](0.013s) 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_ihC1 pg_createsubscriber: error: no publisher connection string specified pg_createsubscriber: hint: Try "pg_createsubscriber --help" for more information. [12:03:27.499](0.015s) 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_ihC1 --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. [12:03:27.517](0.018s) 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_ihC1 --publisher-server port=5432 --database pg1 --database pg1 pg_createsubscriber: error: duplicate database "pg1" [12:03:27.534](0.017s) ok 13 - duplicate database name # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_ihC1 --publisher-server port=5432 --publication foo1 --publication foo1 --database pg1 --database pg2 pg_createsubscriber: error: duplicate publication "foo1" [12:03:27.566](0.033s) ok 14 - duplicate publication name # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_ihC1 --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). [12:03:27.594](0.027s) 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_ihC1 --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). [12:03:27.613](0.020s) 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_ihC1 --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). [12:03:27.633](0.020s) ok 17 - wrong number of replication slot names # Checking port 50826 # Found port 50826 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=50826 host=/tmp/DWRG73Xotc Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_p.log [12:03:27.675](0.041s) # 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 33412 # Checking port 50827 # Found port 50827 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=50827 host=/tmp/DWRG73Xotc Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_f.log [12:03:28.040](0.366s) # 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/DWRG73Xotc -p 50826 --checkpoint fast --no-sync # Backup finished # Checking port 50828 # Found port 50828 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=50828 host=/tmp/DWRG73Xotc 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 33841 # Checking port 50829 # Found port 50829 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=50829 host=/tmp/DWRG73Xotc 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 33914 ### 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=50826 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50829 --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 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207445079481100 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 12:03:31.172 UTC [33967][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:31.172 UTC [33967][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50829" 2024-04-10 12:03:31.192 UTC [33972][startup] LOG: database system was shut down at 2024-04-10 12:03:30 UTC 2024-04-10 12:03:31.195 UTC [33967][postmaster] LOG: database system is ready to accept connections pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-10 12:03:31.252 UTC [33984][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:31.252 UTC [33984][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-10 12:03:31.252 UTC [33984][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:31.263 UTC [33984][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:31.264 UTC [33984][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-10 12:03:31.265 UTC [33984][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.013 user=postgres database=pg1 host=[local] 2024-04-10 12:03:31.278 UTC [33967][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:31.278 UTC [33967][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:31.280 UTC [33967][postmaster] LOG: background worker "logical replication launcher" (PID 33978) exited with exit code 1 2024-04-10 12:03:31.280 UTC [33970][checkpointer] LOG: shutting down 2024-04-10 12:03:31.280 UTC [33970][checkpointer] LOG: checkpoint starting: shutdown immediate 2024-04-10 12:03:31.281 UTC [33970][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-10 12:03:31.283 UTC [33967][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [12:03:31.285](3.245s) 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=50826 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50828 --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 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207445079481100 on subscriber pg_createsubscriber: error: standby is up and running pg_createsubscriber: hint: Stop the standby and try again. [12:03:31.373](0.088s) 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=50826 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50827 --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 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207848809767591 on subscriber pg_createsubscriber: error: subscriber data directory is not a copy of the source database cluster [12:03:31.415](0.042s) 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/DWRG73Xotc -p 50828 --checkpoint fast --no-sync # Backup finished # Checking port 50830 # Found port 50830 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=50830 host=/tmp/DWRG73Xotc 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=50828 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50830 --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 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207445079481100 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 12:03:32.047 UTC [34118][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:32.047 UTC [34118][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50830" 2024-04-10 12:03:32.068 UTC [34123][startup] LOG: database system was interrupted while in recovery at log time 2024-04-10 12:03:29 UTC 2024-04-10 12:03:32.068 UTC [34123][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-10 12:03:32.068 UTC [34123][startup] LOG: starting backup recovery with redo LSN 0/2000028, checkpoint LSN 0/2000080, on timeline ID 1 2024-04-10 12:03:32.068 UTC [34123][startup] LOG: entering standby mode 2024-04-10 12:03:32.069 UTC [34123][startup] LOG: redo starts at 0/2000028 2024-04-10 12:03:32.069 UTC [34123][startup] LOG: completed backup recovery with redo LSN 0/2000028 and end LSN 0/2000120 2024-04-10 12:03:32.069 UTC [34123][startup] LOG: consistent recovery state reached at 0/3000000 2024-04-10 12:03:32.075 UTC [34118][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 12:03:32.116 UTC [34126][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-10 12:03:32.137 UTC [34134][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:32.138 UTC [34134][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-10 12:03:32.138 UTC [34134][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:32.156 UTC [34134][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:32.158 UTC [34134][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 12:03:32.159 UTC [34134][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-10 12:03:32.169 UTC [34134][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.032 user=postgres database=pg1 host=[local] pg_createsubscriber: error: primary server cannot be in recovery 2024-04-10 12:03:32.198 UTC [34118][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:32.198 UTC [34118][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:32.198 UTC [34126][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 12:03:32.199 UTC [34121][checkpointer] LOG: shutting down 2024-04-10 12:03:32.200 UTC [34118][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [12:03:32.205](0.790s) 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 34189 ### 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=50826 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50828 --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 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207445079481100 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 12:03:32.710 UTC [34253][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:32.710 UTC [34253][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50828" 2024-04-10 12:03:32.719 UTC [34256][startup] LOG: database system was shut down in recovery at 2024-04-10 12:03:32 UTC 2024-04-10 12:03:32.719 UTC [34256][startup] LOG: entering standby mode 2024-04-10 12:03:32.720 UTC [34256][startup] LOG: consistent recovery state reached at 0/3000188 2024-04-10 12:03:32.720 UTC [34256][startup] LOG: invalid record length at 0/3000188: expected at least 24, got 0 2024-04-10 12:03:32.723 UTC [34253][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 12:03:32.756 UTC [34257][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-10 12:03:32.756 UTC [34256][startup] LOG: redo starts at 0/3000188 pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-10 12:03:32.800 UTC [34270][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:32.808 UTC [34270][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-10 12:03:32.808 UTC [34270][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:32.813 UTC [34270][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:32.814 UTC [34270][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 12:03:32.814 UTC [34270][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-10 12:03:32.826 UTC [34270][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.025 user=postgres database=pg1 host=[local] 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-10 12:03:32.882 UTC [34253][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:32.882 UTC [34253][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:32.883 UTC [34257][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 12:03:32.884 UTC [34254][checkpointer] LOG: shutting down 2024-04-10 12:03:32.886 UTC [34253][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [12:03:32.890](0.685s) 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=50826 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50828 --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 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207445079481100 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 12:03:33.028 UTC [34306][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:33.029 UTC [34306][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50828" 2024-04-10 12:03:33.032 UTC [34313][startup] LOG: database system was shut down in recovery at 2024-04-10 12:03:32 UTC 2024-04-10 12:03:33.032 UTC [34313][startup] LOG: entering standby mode 2024-04-10 12:03:33.033 UTC [34313][startup] LOG: redo starts at 0/3000188 2024-04-10 12:03:33.033 UTC [34313][startup] LOG: invalid magic number 0000 in WAL segment 000000010000000000000003, LSN 0/3004000, offset 16384 2024-04-10 12:03:33.033 UTC [34313][startup] LOG: consistent recovery state reached at 0/3002758 2024-04-10 12:03:33.033 UTC [34306][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 12:03:33.033 UTC [34313][startup] LOG: invalid magic number 0000 in WAL segment 000000010000000000000003, LSN 0/3004000, offset 16384 2024-04-10 12:03:33.057 UTC [34315][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-10 12:03:33.125 UTC [34337][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:33.126 UTC [34337][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-10 12:03:33.126 UTC [34337][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:33.132 UTC [34337][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:33.132 UTC [34337][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 12:03:33.132 UTC [34337][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-10 12:03:33.135 UTC [34337][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.010 user=postgres database=pg1 host=[local] 2024-04-10 12:03:33.139 UTC [34306][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:33.139 UTC [34306][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:33.140 UTC [34315][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 12:03:33.142 UTC [34311][checkpointer] LOG: shutting down 2024-04-10 12:03:33.144 UTC [34306][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [12:03:33.240](0.350s) 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 34372 # 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=50826 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50828 --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 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207445079481100 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 12:03:33.589 UTC [34407][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:33.589 UTC [34407][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50828" 2024-04-10 12:03:33.616 UTC [34410][startup] LOG: database system was shut down in recovery at 2024-04-10 12:03:33 UTC 2024-04-10 12:03:33.616 UTC [34410][startup] LOG: entering standby mode 2024-04-10 12:03:33.617 UTC [34410][startup] LOG: redo starts at 0/3000188 2024-04-10 12:03:33.617 UTC [34410][startup] LOG: consistent recovery state reached at 0/30046C0 2024-04-10 12:03:33.617 UTC [34410][startup] LOG: invalid record length at 0/30046C0: expected at least 24, got 0 2024-04-10 12:03:33.617 UTC [34407][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 12:03:33.626 UTC [34411][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-10 12:03:33.687 UTC [34416][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:33.688 UTC [34416][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-10 12:03:33.688 UTC [34416][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:33.693 UTC [34416][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:33.694 UTC [34416][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 12:03:33.694 UTC [34416][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-10 12:03:33.696 UTC [34416][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.012 user=postgres database=pg1 host=[local] pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: stopping the subscriber 2024-04-10 12:03:33.724 UTC [34407][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:33.725 UTC [34407][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:33.726 UTC [34411][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 12:03:33.728 UTC [34408][checkpointer] LOG: shutting down 2024-04-10 12:03:33.728 UTC [34408][checkpointer] LOG: restartpoint starting: shutdown immediate 2024-04-10 12:03:33.787 UTC [34408][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.059 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-10 12:03:33.787 UTC [34408][checkpointer] LOG: recovery restart point at 0/30046C0 2024-04-10 12:03:33.789 UTC [34407][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-10 12:03:34.015 UTC [34465][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:34.015 UTC [34465][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50828" 2024-04-10 12:03:34.028 UTC [34475][startup] LOG: database system was shut down in recovery at 2024-04-10 12:03:33 UTC 2024-04-10 12:03:34.028 UTC [34475][startup] LOG: entering standby mode 2024-04-10 12:03:34.029 UTC [34475][startup] LOG: redo starts at 0/3004738 2024-04-10 12:03:34.029 UTC [34475][startup] LOG: consistent recovery state reached at 0/3004770 2024-04-10 12:03:34.029 UTC [34465][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 12:03:34.029 UTC [34475][startup] LOG: invalid record length at 0/3004770: expected at least 24, got 0 2024-04-10 12:03:34.033 UTC [34476][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-10 12:03:34.112 UTC [34499][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:34.113 UTC [34499][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-10 12:03:34.113 UTC [34499][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:34.118 UTC [34499][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:34.118 UTC [34499][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-10 12:03:34.119 UTC [34499][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.007 user=postgres database=pg1 host=[local] 2024-04-10 12:03:34.121 UTC [34501][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:34.121 UTC [34501][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-10 12:03:34.121 UTC [34501][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:34.122 UTC [34501][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-10 12:03:34.122 UTC [34501][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-10 12:03:34.124 UTC [34501][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.003 user=postgres database=pg1 host=[local] 2024-04-10 12:03:34.125 UTC [34504][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:34.125 UTC [34504][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-10 12:03:34.125 UTC [34504][client backend] [[unknown]][2/1:0] LOG: connection authorized: user=postgres database=pg2 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:34.152 UTC [34504][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-10 12:03:34.153 UTC [34504][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-10 12:03:34.155 UTC [34504][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.030 user=postgres database=pg2 host=[local] pg_createsubscriber: dropping the replication slot "physical_slot" on database "pg1" pg_createsubscriber: stopping the subscriber 2024-04-10 12:03:34.189 UTC [34465][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:34.189 UTC [34465][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:34.190 UTC [34476][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 12:03:34.191 UTC [34473][checkpointer] LOG: shutting down 2024-04-10 12:03:34.193 UTC [34465][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: modifying system identifier of subscriber pg_createsubscriber: system identifier is 7356207874531530328 on subscriber pg_createsubscriber: running pg_resetwal on the subscriber pg_createsubscriber: Done! [12:03:34.293](1.053s) 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 34535 [12:03:34.440](0.147s) 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=50826 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50828 --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 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207445079481100 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 12:03:34.586 UTC [34591][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:34.586 UTC [34591][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50828" 2024-04-10 12:03:34.632 UTC [34602][startup] LOG: database system was shut down in recovery at 2024-04-10 12:03:34 UTC 2024-04-10 12:03:34.632 UTC [34602][startup] LOG: entering standby mode 2024-04-10 12:03:34.634 UTC [34602][startup] LOG: redo starts at 0/3004738 2024-04-10 12:03:34.634 UTC [34602][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-10 12:03:34.634 UTC [34591][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 12:03:34.634 UTC [34602][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-10 12:03:34.672 UTC [34603][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-10 12:03:34.691 UTC [34607][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:34.691 UTC [34607][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-10 12:03:34.691 UTC [34607][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:34.697 UTC [34607][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:34.697 UTC [34607][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 12:03:34.697 UTC [34607][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-10 12:03:34.700 UTC [34607][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.019 user=postgres database=pg1 host=[local] pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: stopping the subscriber 2024-04-10 12:03:34.798 UTC [34591][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:34.798 UTC [34591][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:34.798 UTC [34603][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 12:03:34.801 UTC [34600][checkpointer] LOG: shutting down 2024-04-10 12:03:34.803 UTC [34591][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: creating publication "pg_createsubscriber_16384_529abc29" 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-10 12:03:34.947 UTC [34628][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:34.947 UTC [34628][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50828" 2024-04-10 12:03:35.009 UTC [34642][startup] LOG: database system was shut down in recovery at 2024-04-10 12:03:34 UTC 2024-04-10 12:03:35.010 UTC [34642][startup] LOG: entering standby mode 2024-04-10 12:03:35.011 UTC [34642][startup] LOG: redo starts at 0/3004738 2024-04-10 12:03:35.011 UTC [34642][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-10 12:03:35.011 UTC [34642][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-10 12:03:35.011 UTC [34628][postmaster] LOG: database system is ready to accept read-only connections pg_createsubscriber: server was started pg_createsubscriber: waiting for the target server to reach the consistent state 2024-04-10 12:03:35.034 UTC [34646][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:35.034 UTC [34646][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-10 12:03:35.034 UTC [34646][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:35.036 UTC [34643][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-10 12:03:35.039 UTC [34646][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:35.040 UTC [34646][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-10 12:03:35.040 UTC [34646][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.006 user=postgres database=pg1 host=[local] 2024-04-10 12:03:35.042 UTC [34647][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:35.042 UTC [34647][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-10 12:03:35.042 UTC [34647][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:35.043 UTC [34647][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_529abc29" on database "pg1" pg_createsubscriber: creating subscription "pg_createsubscriber_16384_529abc29" on database "pg1" 2024-04-10 12:03:35.043 UTC [34647][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_529abc29' 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_529abc29" on database "pg1" 2024-04-10 12:03:35.045 UTC [34647][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-10 12:03:35.050 UTC [34628][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:35.050 UTC [34628][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:35.050 UTC [34643][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 12:03:35.053 UTC [34640][checkpointer] LOG: shutting down 2024-04-10 12:03:35.054 UTC [34628][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: modifying system identifier of subscriber pg_createsubscriber: system identifier is 7356207878247134992 on subscriber pg_createsubscriber: running pg_resetwal on the subscriber pg_createsubscriber: Done! [12:03:35.151](0.711s) 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=50826 host=/tmp/DWRG73Xotc dbname='pg1' --socket-directory /tmp/DWRG73Xotc --subscriber-port 50828 --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/DWRG73Xotc port=50826 dbname=pg1 pg_createsubscriber: subscriber(0): subscription: (auto) ; connection string: port=50828 host=/tmp/DWRG73Xotc fallback_application_name=pg_createsubscriber dbname=pg1 pg_createsubscriber: publisher(1): publication: Pub2 ; replication slot: replslot2 ; connection string: host=/tmp/DWRG73Xotc port=50826 dbname=pg2 pg_createsubscriber: subscriber(1): subscription: (auto) ; connection string: port=50828 host=/tmp/DWRG73Xotc fallback_application_name=pg_createsubscriber dbname=pg2 pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7356207445079481100 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356207445079481100 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 50828" -o "-c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directories='/tmp/DWRG73Xotc'" 2024-04-10 12:03:35.229 UTC [34684][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-10 12:03:35.301 UTC [34684][postmaster] LOG: listening on Unix socket "/tmp/DWRG73Xotc/.s.PGSQL.50828" 2024-04-10 12:03:35.305 UTC [34695][startup] LOG: database system was shut down in recovery at 2024-04-10 12:03:35 UTC 2024-04-10 12:03:35.305 UTC [34695][startup] LOG: entering standby mode 2024-04-10 12:03:35.308 UTC [34695][startup] LOG: redo starts at 0/3004738 2024-04-10 12:03:35.308 UTC [34695][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-10 12:03:35.308 UTC [34684][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 12:03:35.308 UTC [34695][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-10 12:03:35.316 UTC [34699][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 12:03:35.334 UTC [34699][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-10 12:03:35.334 UTC [34699][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 12:03:35.345 UTC [34699][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 12:03:35.345 UTC [34699][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 12:03:35.346 UTC [34699][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-10 12:03:35.349 UTC [34699][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.033 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: 0 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-10 12:03:35.407 UTC [34698][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-10 12:03:35.412 UTC [34684][postmaster] LOG: received fast shutdown request 2024-04-10 12:03:35.412 UTC [34684][postmaster] LOG: aborting any active transactions 2024-04-10 12:03:35.413 UTC [34698][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 12:03:35.414 UTC [34693][checkpointer] LOG: shutting down 2024-04-10 12:03:35.416 UTC [34684][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [12:03:35.513](0.362s) not ok 27 - run pg_createsubscriber on node S [12:03:35.513](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. [12:03:35.528](0.014s) not ok 28 - the physical replication slot used as primary_slot_name has been removed [12:03:35.528](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. [12:03:35.528](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 34739 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 34372 ### 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 34739 ### 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" [12:03:36.154](0.626s) # Tests were run but no plan was declared and done_testing() was not seen. [12:03:36.154](0.000s) # Looks like your test exited with 29 just after 28.