# Running: pg_createsubscriber --help [10:27:19.832](0.066s) ok 1 - pg_createsubscriber --help exit code 0 [10:27:19.833](0.000s) ok 2 - pg_createsubscriber --help goes to stdout [10:27:19.833](0.000s) ok 3 - pg_createsubscriber --help nothing to stderr [10:27:19.833](0.000s) ok 4 - pg_createsubscriber --help maximum line length # Running: pg_createsubscriber --version [10:27:19.841](0.008s) ok 5 - pg_createsubscriber --version exit code 0 [10:27:19.841](0.000s) ok 6 - pg_createsubscriber --version goes to stdout [10:27:19.841](0.000s) ok 7 - pg_createsubscriber --version nothing to stderr # Running: pg_createsubscriber --not-a-valid-option [10:27:19.850](0.009s) ok 8 - pg_createsubscriber with invalid option nonzero exit code [10:27:19.850](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. [10:27:19.863](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_5GWT pg_createsubscriber: error: no publisher connection string specified pg_createsubscriber: hint: Try "pg_createsubscriber --help" for more information. [10:27:19.876](0.013s) 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_5GWT --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. [10:27:19.889](0.013s) 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_5GWT --publisher-server port=5432 --database pg1 --database pg1 pg_createsubscriber: error: duplicate database "pg1" [10:27:19.924](0.035s) ok 13 - duplicate database name # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_5GWT --publisher-server port=5432 --publication foo1 --publication foo1 --database pg1 --database pg2 pg_createsubscriber: error: duplicate publication "foo1" [10:27:19.941](0.017s) ok 14 - duplicate publication name # Running: pg_createsubscriber --verbose --pgdata /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/data/tmp_test_5GWT --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). [10:27:19.956](0.015s) 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_5GWT --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). [10:27:19.970](0.014s) 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_5GWT --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). [10:27:19.982](0.012s) ok 17 - wrong number of replication slot names # Checking port 59942 # Found port 59942 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=59942 host=/tmp/o7FcBsgkyS Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_p.log [10:27:19.988](0.006s) # 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 41153 # Checking port 59943 # Found port 59943 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=59943 host=/tmp/o7FcBsgkyS Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_f.log [10:27:20.263](0.275s) # 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/o7FcBsgkyS -p 59942 --checkpoint fast --no-sync # Backup finished # Checking port 59944 # Found port 59944 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=59944 host=/tmp/o7FcBsgkyS 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 41486 # Checking port 59945 # Found port 59945 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=59945 host=/tmp/o7FcBsgkyS 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 41544 ### 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=59942 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59945 --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 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327248949795154 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-05 10:27:22.835 UTC [41597][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:22.835 UTC [41597][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59945" 2024-04-05 10:27:22.839 UTC [41609][startup] LOG: database system was shut down at 2024-04-05 10:27:22 UTC 2024-04-05 10:27:22.841 UTC [41597][postmaster] LOG: database system is ready to accept connections pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-05 10:27:22.914 UTC [41632][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:22.915 UTC [41632][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-05 10:27:22.915 UTC [41632][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:22.920 UTC [41632][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:22.921 UTC [41632][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-05 10:27:22.921 UTC [41632][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.006 user=postgres database=pg1 host=[local] 2024-04-05 10:27:22.924 UTC [41597][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:22.924 UTC [41597][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:22.925 UTC [41597][postmaster] LOG: background worker "logical replication launcher" (PID 41613) exited with exit code 1 2024-04-05 10:27:22.927 UTC [41607][checkpointer] LOG: shutting down 2024-04-05 10:27:22.927 UTC [41607][checkpointer] LOG: checkpoint starting: shutdown immediate 2024-04-05 10:27:22.927 UTC [41607][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-05 10:27:22.929 UTC [41597][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [10:27:23.096](2.833s) 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=59942 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59944 --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 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327248949795154 on subscriber pg_createsubscriber: error: standby is up and running pg_createsubscriber: hint: Stop the standby and try again. [10:27:23.179](0.083s) 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=59942 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59943 --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 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327649827995889 on subscriber pg_createsubscriber: error: subscriber data directory is not a copy of the source database cluster [10:27:23.212](0.033s) 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/o7FcBsgkyS -p 59944 --checkpoint fast --no-sync # Backup finished # Checking port 59946 # Found port 59946 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=59946 host=/tmp/o7FcBsgkyS 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=59944 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59946 --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 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327248949795154 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-05 10:27:23.780 UTC [41777][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:23.780 UTC [41777][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59946" 2024-04-05 10:27:23.791 UTC [41781][startup] LOG: database system was interrupted while in recovery at log time 2024-04-05 10:27:21 UTC 2024-04-05 10:27:23.791 UTC [41781][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-05 10:27:23.791 UTC [41781][startup] LOG: starting backup recovery with redo LSN 0/2000028, checkpoint LSN 0/2000080, on timeline ID 1 2024-04-05 10:27:23.791 UTC [41781][startup] LOG: entering standby mode 2024-04-05 10:27:23.792 UTC [41781][startup] LOG: redo starts at 0/2000028 2024-04-05 10:27:23.792 UTC [41781][startup] LOG: completed backup recovery with redo LSN 0/2000028 and end LSN 0/2000120 2024-04-05 10:27:23.792 UTC [41781][startup] LOG: consistent recovery state reached at 0/3000000 2024-04-05 10:27:23.792 UTC [41777][postmaster] LOG: database system is ready to accept read-only connections 2024-04-05 10:27:23.831 UTC [41784][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-05 10:27:23.872 UTC [41798][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:23.872 UTC [41798][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-05 10:27:23.872 UTC [41798][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:23.877 UTC [41798][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:23.878 UTC [41798][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-05 10:27:23.878 UTC [41798][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-05 10:27:23.881 UTC [41798][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.009 user=postgres database=pg1 host=[local] pg_createsubscriber: error: primary server cannot be in recovery 2024-04-05 10:27:23.895 UTC [41777][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:23.895 UTC [41777][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:23.895 UTC [41784][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-05 10:27:23.897 UTC [41779][checkpointer] LOG: shutting down 2024-04-05 10:27:23.898 UTC [41777][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [10:27:24.008](0.796s) 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 41855 ### 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=59942 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59944 --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 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327248949795154 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-05 10:27:24.543 UTC [41930][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:24.543 UTC [41930][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59944" 2024-04-05 10:27:24.559 UTC [41935][startup] LOG: database system was shut down in recovery at 2024-04-05 10:27:24 UTC 2024-04-05 10:27:24.559 UTC [41935][startup] LOG: entering standby mode 2024-04-05 10:27:24.560 UTC [41935][startup] LOG: consistent recovery state reached at 0/3000188 2024-04-05 10:27:24.560 UTC [41935][startup] LOG: invalid record length at 0/3000188: expected at least 24, got 0 2024-04-05 10:27:24.560 UTC [41930][postmaster] LOG: database system is ready to accept read-only connections 2024-04-05 10:27:24.600 UTC [41936][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-05 10:27:24.600 UTC [41935][startup] LOG: redo starts at 0/3000188 pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-05 10:27:24.624 UTC [41948][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:24.624 UTC [41948][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-05 10:27:24.624 UTC [41948][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:24.639 UTC [41948][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:24.640 UTC [41948][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-05 10:27:24.641 UTC [41948][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-05 10:27:24.644 UTC [41948][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.020 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-05 10:27:24.696 UTC [41930][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:24.696 UTC [41930][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:24.697 UTC [41936][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-05 10:27:24.698 UTC [41933][checkpointer] LOG: shutting down 2024-04-05 10:27:24.700 UTC [41930][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [10:27:25.065](1.057s) 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=59942 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59944 --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 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327248949795154 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-05 10:27:25.110 UTC [42035][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:25.110 UTC [42035][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59944" 2024-04-05 10:27:25.126 UTC [42041][startup] LOG: database system was shut down in recovery at 2024-04-05 10:27:24 UTC 2024-04-05 10:27:25.126 UTC [42041][startup] LOG: entering standby mode 2024-04-05 10:27:25.128 UTC [42041][startup] LOG: redo starts at 0/3000188 2024-04-05 10:27:25.128 UTC [42041][startup] LOG: consistent recovery state reached at 0/30046C0 2024-04-05 10:27:25.128 UTC [42035][postmaster] LOG: database system is ready to accept read-only connections 2024-04-05 10:27:25.128 UTC [42041][startup] LOG: invalid record length at 0/30046C0: expected at least 24, got 0 2024-04-05 10:27:25.137 UTC [42046][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-05 10:27:25.196 UTC [42069][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:25.197 UTC [42069][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-05 10:27:25.197 UTC [42069][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:25.202 UTC [42069][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:25.203 UTC [42069][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-05 10:27:25.203 UTC [42069][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-05 10:27:25.206 UTC [42069][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.009 user=postgres database=pg1 host=[local] 2024-04-05 10:27:25.210 UTC [42035][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:25.210 UTC [42035][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:25.210 UTC [42046][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-05 10:27:25.211 UTC [42039][checkpointer] LOG: shutting down 2024-04-05 10:27:25.213 UTC [42035][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [10:27:25.384](0.319s) 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 42136 # 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=59942 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59944 --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 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327248949795154 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-05 10:27:25.720 UTC [42172][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:25.720 UTC [42172][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59944" 2024-04-05 10:27:25.739 UTC [42177][startup] LOG: database system was shut down in recovery at 2024-04-05 10:27:25 UTC 2024-04-05 10:27:25.739 UTC [42177][startup] LOG: entering standby mode 2024-04-05 10:27:25.816 UTC [42177][startup] LOG: redo starts at 0/3000188 2024-04-05 10:27:25.817 UTC [42177][startup] LOG: consistent recovery state reached at 0/30046C0 2024-04-05 10:27:25.817 UTC [42172][postmaster] LOG: database system is ready to accept read-only connections 2024-04-05 10:27:25.817 UTC [42177][startup] LOG: invalid record length at 0/30046C0: expected at least 24, got 0 2024-04-05 10:27:25.822 UTC [42179][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-05 10:27:25.915 UTC [42197][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:25.916 UTC [42197][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-05 10:27:25.916 UTC [42197][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:25.924 UTC [42197][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:25.924 UTC [42197][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-05 10:27:25.925 UTC [42197][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-05 10:27:25.929 UTC [42197][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.013 user=postgres database=pg1 host=[local] pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: stopping the subscriber 2024-04-05 10:27:25.942 UTC [42172][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:25.942 UTC [42172][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:25.943 UTC [42179][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-05 10:27:25.945 UTC [42175][checkpointer] LOG: shutting down 2024-04-05 10:27:25.945 UTC [42175][checkpointer] LOG: restartpoint starting: shutdown immediate 2024-04-05 10:27:25.993 UTC [42175][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.049 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-05 10:27:25.993 UTC [42175][checkpointer] LOG: recovery restart point at 0/30046C0 2024-04-05 10:27:25.995 UTC [42172][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-05 10:27:26.269 UTC [42224][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:26.274 UTC [42224][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59944" 2024-04-05 10:27:26.324 UTC [42228][startup] LOG: database system was shut down in recovery at 2024-04-05 10:27:25 UTC 2024-04-05 10:27:26.324 UTC [42228][startup] LOG: entering standby mode 2024-04-05 10:27:26.327 UTC [42228][startup] LOG: redo starts at 0/3004738 2024-04-05 10:27:26.328 UTC [42228][startup] LOG: consistent recovery state reached at 0/3004770 2024-04-05 10:27:26.328 UTC [42224][postmaster] LOG: database system is ready to accept read-only connections 2024-04-05 10:27:26.328 UTC [42228][startup] LOG: invalid record length at 0/3004770: expected at least 24, got 0 pg_createsubscriber: server was started pg_createsubscriber: waiting for the target server to reach the consistent state 2024-04-05 10:27:26.351 UTC [42233][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-05 10:27:26.351 UTC [42235][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:26.352 UTC [42235][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-05 10:27:26.352 UTC [42235][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:26.357 UTC [42235][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:26.358 UTC [42235][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-05 10:27:26.359 UTC [42235][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.007 user=postgres database=pg1 host=[local] 2024-04-05 10:27:26.360 UTC [42236][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:26.361 UTC [42236][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-05 10:27:26.361 UTC [42236][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:26.361 UTC [42236][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-05 10:27:26.362 UTC [42236][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-05 10:27:26.364 UTC [42236][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.003 user=postgres database=pg1 host=[local] 2024-04-05 10:27:26.365 UTC [42237][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:26.366 UTC [42237][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-05 10:27:26.366 UTC [42237][client backend] [[unknown]][2/1:0] LOG: connection authorized: user=postgres database=pg2 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:26.477 UTC [42237][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-05 10:27:26.477 UTC [42237][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-05 10:27:26.481 UTC [42237][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.115 user=postgres database=pg2 host=[local] pg_createsubscriber: dropping the replication slot "physical_slot" on database "pg1" pg_createsubscriber: stopping the subscriber 2024-04-05 10:27:26.509 UTC [42224][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:26.509 UTC [42224][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:26.511 UTC [42233][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-05 10:27:26.512 UTC [42226][checkpointer] LOG: shutting down 2024-04-05 10:27:26.513 UTC [42224][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: modifying system identifier of subscriber pg_createsubscriber: system identifier is 7354327676587992238 on subscriber pg_createsubscriber: running pg_resetwal on the subscriber pg_createsubscriber: Done! [10:27:26.743](1.359s) 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 42313 [10:27:26.914](0.171s) 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=59942 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59944 --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 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327248949795154 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-05 10:27:27.115 UTC [42410][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:27.117 UTC [42410][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59944" 2024-04-05 10:27:27.124 UTC [42418][startup] LOG: database system was shut down in recovery at 2024-04-05 10:27:26 UTC 2024-04-05 10:27:27.125 UTC [42418][startup] LOG: entering standby mode 2024-04-05 10:27:27.126 UTC [42418][startup] LOG: redo starts at 0/3004738 2024-04-05 10:27:27.126 UTC [42418][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-05 10:27:27.126 UTC [42410][postmaster] LOG: database system is ready to accept read-only connections 2024-04-05 10:27:27.126 UTC [42418][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-05 10:27:27.131 UTC [42420][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-05 10:27:27.201 UTC [42440][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:27.201 UTC [42440][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-05 10:27:27.201 UTC [42440][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:27.207 UTC [42440][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:27.207 UTC [42440][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-05 10:27:27.207 UTC [42440][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-05 10:27:27.210 UTC [42440][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.009 user=postgres database=pg1 host=[local] pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: stopping the subscriber 2024-04-05 10:27:27.224 UTC [42410][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:27.224 UTC [42410][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:27.225 UTC [42420][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-05 10:27:27.226 UTC [42415][checkpointer] LOG: shutting down 2024-04-05 10:27:27.228 UTC [42410][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: creating publication "pg_createsubscriber_16384_e6f73427" 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-05 10:27:27.382 UTC [42475][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:27.382 UTC [42475][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59944" 2024-04-05 10:27:27.401 UTC [42481][startup] LOG: database system was shut down in recovery at 2024-04-05 10:27:27 UTC 2024-04-05 10:27:27.401 UTC [42481][startup] LOG: entering standby mode 2024-04-05 10:27:27.402 UTC [42481][startup] LOG: redo starts at 0/3004738 2024-04-05 10:27:27.402 UTC [42481][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-05 10:27:27.402 UTC [42481][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-05 10:27:27.402 UTC [42475][postmaster] LOG: database system is ready to accept read-only connections 2024-04-05 10:27:27.417 UTC [42486][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-05 10:27:27.455 UTC [42508][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:27.455 UTC [42508][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-05 10:27:27.455 UTC [42508][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:27.460 UTC [42508][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:27.461 UTC [42508][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-05 10:27:27.463 UTC [42508][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.008 user=postgres database=pg1 host=[local] 2024-04-05 10:27:27.469 UTC [42513][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:27.553 UTC [42513][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-05 10:27:27.553 UTC [42513][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:27.556 UTC [42513][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_e6f73427" on database "pg1" pg_createsubscriber: creating subscription "pg_createsubscriber_16384_e6f73427" on database "pg1" 2024-04-05 10:27:27.559 UTC [42513][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_e6f73427' 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_e6f73427" on database "pg1" 2024-04-05 10:27:27.568 UTC [42513][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.099 user=postgres database=pg1 host=[local] pg_createsubscriber: dropping the replication slot "physical_slot" on database "pg1" pg_createsubscriber: stopping the subscriber 2024-04-05 10:27:27.587 UTC [42475][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:27.587 UTC [42475][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:27.588 UTC [42486][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-05 10:27:27.590 UTC [42476][checkpointer] LOG: shutting down 2024-04-05 10:27:27.591 UTC [42475][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: modifying system identifier of subscriber pg_createsubscriber: system identifier is 7354327681201284495 on subscriber pg_createsubscriber: running pg_resetwal on the subscriber pg_createsubscriber: Done! [10:27:28.157](1.243s) 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=59942 host=/tmp/o7FcBsgkyS dbname='pg1' --socket-directory /tmp/o7FcBsgkyS --subscriber-port 59944 --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/o7FcBsgkyS port=59942 dbname=pg1 pg_createsubscriber: subscriber(0): subscription: (auto) ; connection string: port=59944 host=/tmp/o7FcBsgkyS fallback_application_name=pg_createsubscriber dbname=pg1 pg_createsubscriber: publisher(1): publication: Pub2 ; replication slot: replslot2 ; connection string: host=/tmp/o7FcBsgkyS port=59942 dbname=pg2 pg_createsubscriber: subscriber(1): subscription: (auto) ; connection string: port=59944 host=/tmp/o7FcBsgkyS fallback_application_name=pg_createsubscriber dbname=pg2 pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7354327248949795154 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7354327248949795154 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 59944" -o "-c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directories='/tmp/o7FcBsgkyS'" 2024-04-05 10:27:28.214 UTC [42613][postmaster] LOG: starting PostgreSQL 17devel on x86_64-linux, compiled by gcc-10.2.1, 64-bit 2024-04-05 10:27:28.214 UTC [42613][postmaster] LOG: listening on Unix socket "/tmp/o7FcBsgkyS/.s.PGSQL.59944" 2024-04-05 10:27:28.279 UTC [42623][startup] LOG: database system was shut down in recovery at 2024-04-05 10:27:27 UTC 2024-04-05 10:27:28.279 UTC [42623][startup] LOG: entering standby mode 2024-04-05 10:27:28.280 UTC [42623][startup] LOG: redo starts at 0/3004738 2024-04-05 10:27:28.280 UTC [42623][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-05 10:27:28.281 UTC [42623][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-05 10:27:28.281 UTC [42613][postmaster] LOG: database system is ready to accept read-only connections pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-05 10:27:28.285 UTC [42629][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-05 10:27:28.285 UTC [42629][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-05 10:27:28.285 UTC [42629][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-05 10:27:28.290 UTC [42629][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-05 10:27:28.291 UTC [42629][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-05 10:27:28.291 UTC [42629][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-05 10:27:28.293 UTC [42629][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.008 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-05 10:27:28.305 UTC [42628][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-05 10:27:28.307 UTC [42613][postmaster] LOG: received fast shutdown request 2024-04-05 10:27:28.307 UTC [42613][postmaster] LOG: aborting any active transactions 2024-04-05 10:27:28.308 UTC [42628][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-05 10:27:28.309 UTC [42621][checkpointer] LOG: shutting down 2024-04-05 10:27:28.310 UTC [42613][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [10:27:28.475](0.318s) not ok 27 - run pg_createsubscriber on node S [10:27:28.475](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. [10:27:28.499](0.023s) not ok 28 - the physical replication slot used as primary_slot_name has been removed [10:27:28.499](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. [10:27:28.499](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 42657 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 42136 ### 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 42657 ### 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" [10:27:28.839](0.340s) # Tests were run but no plan was declared and done_testing() was not seen. [10:27:28.839](0.000s) # Looks like your test exited with 29 just after 28.