# Running: pg_createsubscriber --help [23:35:53.286](0.056s) ok 1 - pg_createsubscriber --help exit code 0 [23:35:53.287](0.000s) ok 2 - pg_createsubscriber --help goes to stdout [23:35:53.287](0.000s) ok 3 - pg_createsubscriber --help nothing to stderr [23:35:53.287](0.000s) ok 4 - pg_createsubscriber --help maximum line length # Running: pg_createsubscriber --version [23:35:53.309](0.022s) ok 5 - pg_createsubscriber --version exit code 0 [23:35:53.310](0.001s) ok 6 - pg_createsubscriber --version goes to stdout [23:35:53.312](0.003s) ok 7 - pg_createsubscriber --version nothing to stderr # Running: pg_createsubscriber --not-a-valid-option [23:35:53.334](0.022s) ok 8 - pg_createsubscriber with invalid option nonzero exit code [23:35:53.338](0.004s) 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. [23:35:53.375](0.037s) 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_z8Gb pg_createsubscriber: error: no publisher connection string specified pg_createsubscriber: hint: Try "pg_createsubscriber --help" for more information. [23:35:53.415](0.040s) 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_z8Gb --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. [23:35:53.431](0.017s) 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_z8Gb --publisher-server port=5432 --database pg1 --database pg1 pg_createsubscriber: error: duplicate database "pg1" [23:35:53.466](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_z8Gb --publisher-server port=5432 --publication foo1 --publication foo1 --database pg1 --database pg2 pg_createsubscriber: error: duplicate publication "foo1" [23:35:53.499](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_z8Gb --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). [23:35:53.512](0.013s) 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_z8Gb --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). [23:35:53.528](0.016s) 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_z8Gb --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). [23:35:53.537](0.009s) ok 17 - wrong number of replication slot names # Checking port 60514 # Found port 60514 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=60514 host=/tmp/C03zns0Lwp Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_p.log [23:35:53.577](0.040s) # 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 21170 # Checking port 60515 # Found port 60515 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=60515 host=/tmp/C03zns0Lwp Log file: /tmp/cirrus-ci-build/build/testrun/pg_basebackup/040_pg_createsubscriber/log/040_pg_createsubscriber_node_f.log [23:35:53.854](0.277s) # 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: en_US.UTF-8 LC_CTYPE: en_US.UTF-8 LC_MESSAGES: C LC_MONETARY: en_US.UTF-8 LC_NUMERIC: en_US.UTF-8 LC_TIME: en_US.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 ... 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 #### Begin standard error psql::2: WARNING: databases created by regression test cases should have names including "regression" psql::3: WARNING: databases created by regression test cases should have names including "regression" #### End standard error # 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/C03zns0Lwp -p 60514 --checkpoint fast --no-sync # Backup finished # Checking port 60516 # Found port 60516 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=60516 host=/tmp/C03zns0Lwp 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 21494 # Checking port 60517 # Found port 60517 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=60517 host=/tmp/C03zns0Lwp 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 21566 ### 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=60514 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60517 --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 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356385936674276796 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 23:35:56.914 UTC [21660][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:35:56.914 UTC [21660][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60517" 2024-04-10 23:35:56.933 UTC [21665][startup] LOG: database system was shut down at 2024-04-10 23:35:56 UTC 2024-04-10 23:35:56.934 UTC [21660][postmaster] LOG: database system is ready to accept connections pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-10 23:35:56.997 UTC [21678][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:35:56.997 UTC [21678][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 23:35:56.997 UTC [21678][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:35:57.002 UTC [21678][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:35:57.002 UTC [21678][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 23:35:57.002 UTC [21678][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.005 user=postgres database=pg1 host=[local] 2024-04-10 23:35:57.005 UTC [21660][postmaster] LOG: received fast shutdown request 2024-04-10 23:35:57.005 UTC [21660][postmaster] LOG: aborting any active transactions 2024-04-10 23:35:57.007 UTC [21660][postmaster] LOG: background worker "logical replication launcher" (PID 21672) exited with exit code 1 2024-04-10 23:35:57.007 UTC [21663][checkpointer] LOG: shutting down 2024-04-10 23:35:57.007 UTC [21663][checkpointer] LOG: checkpoint starting: shutdown immediate 2024-04-10 23:35:57.008 UTC [21663][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 23:35:57.008 UTC [21660][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [23:35:57.118](3.264s) 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=60514 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60516 --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 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356385936674276796 on subscriber pg_createsubscriber: error: standby is up and running pg_createsubscriber: hint: Stop the standby and try again. [23:35:57.159](0.041s) 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=60514 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60515 --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 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356386286285120232 on subscriber pg_createsubscriber: error: subscriber data directory is not a copy of the source database cluster [23:35:57.229](0.070s) 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/C03zns0Lwp -p 60516 --checkpoint fast --no-sync # Backup finished # Checking port 60518 # Found port 60518 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=60518 host=/tmp/C03zns0Lwp 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=60516 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60518 --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 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356385936674276796 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 23:35:57.881 UTC [21818][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:35:57.881 UTC [21818][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60518" 2024-04-10 23:35:57.884 UTC [21821][startup] LOG: database system was interrupted while in recovery at log time 2024-04-10 23:35:55 UTC 2024-04-10 23:35:57.884 UTC [21821][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 23:35:57.885 UTC [21821][startup] LOG: starting backup recovery with redo LSN 0/2000028, checkpoint LSN 0/2000080, on timeline ID 1 2024-04-10 23:35:57.885 UTC [21821][startup] LOG: entering standby mode 2024-04-10 23:35:57.885 UTC [21821][startup] LOG: redo starts at 0/2000028 2024-04-10 23:35:57.885 UTC [21821][startup] LOG: completed backup recovery with redo LSN 0/2000028 and end LSN 0/2000120 2024-04-10 23:35:57.885 UTC [21821][startup] LOG: consistent recovery state reached at 0/3000000 2024-04-10 23:35:57.885 UTC [21818][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 23:35:57.917 UTC [21822][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 23:35:57.974 UTC [21840][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:35:57.974 UTC [21840][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 23:35:57.974 UTC [21840][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:35:57.979 UTC [21840][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:35:57.980 UTC [21840][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 23:35:57.981 UTC [21840][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 23:35:57.985 UTC [21840][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.011 user=postgres database=pg1 host=[local] pg_createsubscriber: error: primary server cannot be in recovery 2024-04-10 23:35:57.989 UTC [21818][postmaster] LOG: received fast shutdown request 2024-04-10 23:35:57.989 UTC [21818][postmaster] LOG: aborting any active transactions 2024-04-10 23:35:57.990 UTC [21822][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 23:35:57.991 UTC [21819][checkpointer] LOG: shutting down 2024-04-10 23:35:57.992 UTC [21818][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [23:35:58.094](0.864s) 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 21874 ### 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=60514 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60516 --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 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356385936674276796 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 23:35:58.595 UTC [21930][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:35:58.595 UTC [21930][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60516" 2024-04-10 23:35:58.598 UTC [21934][startup] LOG: database system was shut down in recovery at 2024-04-10 23:35:58 UTC 2024-04-10 23:35:58.598 UTC [21934][startup] LOG: entering standby mode 2024-04-10 23:35:58.600 UTC [21934][startup] LOG: consistent recovery state reached at 0/3000188 2024-04-10 23:35:58.600 UTC [21934][startup] LOG: invalid record length at 0/3000188: expected at least 24, got 0 2024-04-10 23:35:58.600 UTC [21930][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 23:35:58.605 UTC [21935][walreceiver] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2024-04-10 23:35:58.606 UTC [21934][startup] LOG: redo starts at 0/3000188 pg_createsubscriber: server was started pg_createsubscriber: checking settings on subscriber 2024-04-10 23:35:58.715 UTC [21946][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:35:58.715 UTC [21946][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 23:35:58.715 UTC [21946][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:35:58.723 UTC [21946][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:35:58.754 UTC [21946][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 23:35:58.755 UTC [21946][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 23:35:58.758 UTC [21946][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.043 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 23:35:58.773 UTC [21930][postmaster] LOG: received fast shutdown request 2024-04-10 23:35:58.773 UTC [21930][postmaster] LOG: aborting any active transactions 2024-04-10 23:35:58.774 UTC [21935][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 23:35:58.775 UTC [21932][checkpointer] LOG: shutting down 2024-04-10 23:35:58.776 UTC [21930][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [23:35:58.876](0.783s) 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=60514 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60516 --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 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356385936674276796 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 23:35:58.946 UTC [21979][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:35:58.947 UTC [21979][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60516" 2024-04-10 23:35:58.949 UTC [21982][startup] LOG: database system was shut down in recovery at 2024-04-10 23:35:58 UTC 2024-04-10 23:35:58.949 UTC [21982][startup] LOG: entering standby mode 2024-04-10 23:35:58.949 UTC [21982][startup] LOG: redo starts at 0/3000188 2024-04-10 23:35:58.950 UTC [21982][startup] LOG: consistent recovery state reached at 0/30046C0 2024-04-10 23:35:58.950 UTC [21982][startup] LOG: invalid record length at 0/30046C0: expected at least 24, got 0 2024-04-10 23:35:58.950 UTC [21979][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 23:35:58.953 UTC [21983][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 23:35:59.062 UTC [22000][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:35:59.062 UTC [22000][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 23:35:59.062 UTC [22000][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:35:59.067 UTC [22000][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:35:59.067 UTC [22000][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 23:35:59.067 UTC [22000][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 23:35:59.070 UTC [22000][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.008 user=postgres database=pg1 host=[local] 2024-04-10 23:35:59.072 UTC [21979][postmaster] LOG: received fast shutdown request 2024-04-10 23:35:59.072 UTC [21979][postmaster] LOG: aborting any active transactions 2024-04-10 23:35:59.073 UTC [21983][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 23:35:59.083 UTC [21980][checkpointer] LOG: shutting down 2024-04-10 23:35:59.085 UTC [21979][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [23:35:59.180](0.304s) 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 22027 # 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=60514 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60516 --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 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356385936674276796 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 23:35:59.425 UTC [22047][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:35:59.425 UTC [22047][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60516" 2024-04-10 23:35:59.426 UTC [22050][startup] LOG: database system was shut down in recovery at 2024-04-10 23:35:59 UTC 2024-04-10 23:35:59.426 UTC [22050][startup] LOG: entering standby mode 2024-04-10 23:35:59.427 UTC [22050][startup] LOG: redo starts at 0/3000188 2024-04-10 23:35:59.427 UTC [22050][startup] LOG: consistent recovery state reached at 0/30046C0 2024-04-10 23:35:59.427 UTC [22047][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 23:35:59.427 UTC [22050][startup] LOG: invalid record length at 0/30046C0: expected at least 24, got 0 2024-04-10 23:35:59.431 UTC [22051][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 23:35:59.529 UTC [22074][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:35:59.530 UTC [22074][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 23:35:59.530 UTC [22074][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:35:59.537 UTC [22074][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:35:59.538 UTC [22074][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 23:35:59.538 UTC [22074][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 23:35:59.544 UTC [22074][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.015 user=postgres database=pg1 host=[local] pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: stopping the subscriber 2024-04-10 23:35:59.582 UTC [22047][postmaster] LOG: received fast shutdown request 2024-04-10 23:35:59.582 UTC [22047][postmaster] LOG: aborting any active transactions 2024-04-10 23:35:59.584 UTC [22051][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 23:35:59.584 UTC [22048][checkpointer] LOG: shutting down 2024-04-10 23:35:59.584 UTC [22048][checkpointer] LOG: restartpoint starting: shutdown immediate 2024-04-10 23:35:59.584 UTC [22048][checkpointer] LOG: restartpoint complete: wrote 4 buffers (3.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.001 s, sync=0.001 s, total=0.001 s; sync files=0, longest=0.000 s, average=0.000 s; distance=17 kB, estimate=17 kB; lsn=0/30046C0, redo lsn=0/30046C0 2024-04-10 23:35:59.584 UTC [22048][checkpointer] LOG: recovery restart point at 0/30046C0 2024-04-10 23:35:59.585 UTC [22047][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 23:35:59.834 UTC [22127][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:35:59.834 UTC [22127][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60516" 2024-04-10 23:35:59.836 UTC [22130][startup] LOG: database system was shut down in recovery at 2024-04-10 23:35:59 UTC 2024-04-10 23:35:59.836 UTC [22130][startup] LOG: entering standby mode 2024-04-10 23:35:59.837 UTC [22130][startup] LOG: redo starts at 0/3004738 2024-04-10 23:35:59.837 UTC [22130][startup] LOG: consistent recovery state reached at 0/3004770 2024-04-10 23:35:59.837 UTC [22127][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 23:35:59.837 UTC [22130][startup] LOG: invalid record length at 0/3004770: expected at least 24, got 0 2024-04-10 23:35:59.848 UTC [22131][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 23:35:59.929 UTC [22153][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:35:59.931 UTC [22153][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 23:35:59.931 UTC [22153][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:35:59.935 UTC [22153][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:35:59.936 UTC [22153][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 23:35:59.937 UTC [22153][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.007 user=postgres database=pg1 host=[local] 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 23:35:59.939 UTC [22156][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:35:59.940 UTC [22156][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 23:35:59.940 UTC [22156][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:35:59.946 UTC [22156][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 23:35:59.947 UTC [22156][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 23:35:59.950 UTC [22156][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.010 user=postgres database=pg1 host=[local] 2024-04-10 23:35:59.951 UTC [22157][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:35:59.952 UTC [22157][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 23:35:59.952 UTC [22157][client backend] [[unknown]][2/1:0] LOG: connection authorized: user=postgres database=pg2 application_name=040_pg_createsubscriber.pl 2024-04-10 23:35:59.956 UTC [22157][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 23:35:59.957 UTC [22157][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 23:35:59.959 UTC [22157][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.007 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 23:35:59.967 UTC [22127][postmaster] LOG: received fast shutdown request 2024-04-10 23:35:59.967 UTC [22127][postmaster] LOG: aborting any active transactions 2024-04-10 23:35:59.970 UTC [22131][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 23:35:59.972 UTC [22128][checkpointer] LOG: shutting down 2024-04-10 23:35:59.972 UTC [22127][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: modifying system identifier of subscriber pg_createsubscriber: system identifier is 7356386312343979544 on subscriber pg_createsubscriber: running pg_resetwal on the subscriber pg_createsubscriber: Done! [23:36:00.073](0.893s) 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 22174 [23:36:00.202](0.129s) 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=60514 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60516 --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 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356385936674276796 on subscriber pg_createsubscriber: starting the standby with command-line options 2024-04-10 23:36:00.379 UTC [22221][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:36:00.379 UTC [22221][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60516" 2024-04-10 23:36:00.388 UTC [22226][startup] LOG: database system was shut down in recovery at 2024-04-10 23:36:00 UTC 2024-04-10 23:36:00.388 UTC [22226][startup] LOG: entering standby mode 2024-04-10 23:36:00.389 UTC [22226][startup] LOG: redo starts at 0/3004738 2024-04-10 23:36:00.389 UTC [22226][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-10 23:36:00.389 UTC [22221][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 23:36:00.389 UTC [22226][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-10 23:36:00.391 UTC [22229][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 23:36:00.472 UTC [22262][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:36:00.472 UTC [22262][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 23:36:00.472 UTC [22262][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:36:00.476 UTC [22262][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:36:00.477 UTC [22262][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 23:36:00.477 UTC [22262][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 23:36:00.480 UTC [22262][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.008 user=postgres database=pg1 host=[local] pg_createsubscriber: primary has replication slot "physical_slot" pg_createsubscriber: stopping the subscriber 2024-04-10 23:36:00.529 UTC [22221][postmaster] LOG: received fast shutdown request 2024-04-10 23:36:00.529 UTC [22221][postmaster] LOG: aborting any active transactions 2024-04-10 23:36:00.530 UTC [22229][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 23:36:00.532 UTC [22224][checkpointer] LOG: shutting down 2024-04-10 23:36:00.532 UTC [22221][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: creating publication "pg_createsubscriber_16384_7d9b345e" 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 23:36:00.751 UTC [22318][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:36:00.751 UTC [22318][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60516" 2024-04-10 23:36:00.757 UTC [22321][startup] LOG: database system was shut down in recovery at 2024-04-10 23:36:00 UTC 2024-04-10 23:36:00.757 UTC [22321][startup] LOG: entering standby mode 2024-04-10 23:36:00.763 UTC [22321][startup] LOG: redo starts at 0/3004738 2024-04-10 23:36:00.763 UTC [22321][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-10 23:36:00.764 UTC [22318][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 23:36:00.771 UTC [22321][startup] LOG: invalid record length at 0/3008C70: expected at least 24, got 0 2024-04-10 23:36:00.781 UTC [22323][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 23:36:00.858 UTC [22331][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:36:00.858 UTC [22331][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 23:36:00.858 UTC [22331][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:36:00.862 UTC [22331][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:36:00.863 UTC [22331][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 23:36:00.864 UTC [22332][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:36:00.868 UTC [22331][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.010 user=postgres database=pg1 host=[local] 2024-04-10 23:36:00.869 UTC [22332][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 23:36:00.869 UTC [22332][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:36:00.869 UTC [22332][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_7d9b345e" on database "pg1" pg_createsubscriber: creating subscription "pg_createsubscriber_16384_7d9b345e" on database "pg1" 2024-04-10 23:36:00.870 UTC [22332][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_7d9b345e' 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_7d9b345e" on database "pg1" 2024-04-10 23:36:00.872 UTC [22332][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.008 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 23:36:00.899 UTC [22318][postmaster] LOG: received fast shutdown request 2024-04-10 23:36:00.899 UTC [22318][postmaster] LOG: aborting any active transactions 2024-04-10 23:36:00.900 UTC [22323][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 23:36:00.907 UTC [22319][checkpointer] LOG: shutting down 2024-04-10 23:36:00.908 UTC [22318][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped pg_createsubscriber: modifying system identifier of subscriber pg_createsubscriber: system identifier is 7356386316410500795 on subscriber pg_createsubscriber: running pg_resetwal on the subscriber pg_createsubscriber: Done! [23:36:01.017](0.815s) 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=60514 host=/tmp/C03zns0Lwp dbname='pg1' --socket-directory /tmp/C03zns0Lwp --subscriber-port 60516 --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/C03zns0Lwp port=60514 dbname=pg1 pg_createsubscriber: subscriber(0): subscription: (auto) ; connection string: port=60516 host=/tmp/C03zns0Lwp fallback_application_name=pg_createsubscriber dbname=pg1 pg_createsubscriber: publisher(1): publication: Pub2 ; replication slot: replslot2 ; connection string: host=/tmp/C03zns0Lwp port=60514 dbname=pg2 pg_createsubscriber: subscriber(1): subscription: (auto) ; connection string: port=60516 host=/tmp/C03zns0Lwp fallback_application_name=pg_createsubscriber dbname=pg2 pg_createsubscriber: getting system identifier from publisher pg_createsubscriber: system identifier is 7356385936674276796 on publisher pg_createsubscriber: getting system identifier from subscriber pg_createsubscriber: system identifier is 7356385936674276796 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 60516" -o "-c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directories='/tmp/C03zns0Lwp'" 2024-04-10 23:36:01.113 UTC [22361][postmaster] LOG: starting PostgreSQL 17devel on x86_64-freebsd, compiled by clang-14.0.5, 64-bit 2024-04-10 23:36:01.113 UTC [22361][postmaster] LOG: listening on Unix socket "/tmp/C03zns0Lwp/.s.PGSQL.60516" 2024-04-10 23:36:01.144 UTC [22367][startup] LOG: database system was shut down in recovery at 2024-04-10 23:36:00 UTC 2024-04-10 23:36:01.144 UTC [22367][startup] LOG: entering standby mode 2024-04-10 23:36:01.145 UTC [22367][startup] LOG: redo starts at 0/3004738 2024-04-10 23:36:01.145 UTC [22367][startup] LOG: consistent recovery state reached at 0/3008C70 2024-04-10 23:36:01.145 UTC [22361][postmaster] LOG: database system is ready to accept read-only connections 2024-04-10 23:36:01.146 UTC [22367][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 23:36:01.226 UTC [22383][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-04-10 23:36:01.226 UTC [22383][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 23:36:01.226 UTC [22383][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=pg1 application_name=040_pg_createsubscriber.pl 2024-04-10 23:36:01.231 UTC [22383][client backend] [040_pg_createsubscriber.pl][0/2:0] LOG: statement: SELECT pg_catalog.set_config('search_path', '', false); 2024-04-10 23:36:01.232 UTC [22383][client backend] [040_pg_createsubscriber.pl][0/3:0] LOG: statement: SELECT pg_catalog.pg_is_in_recovery() 2024-04-10 23:36:01.233 UTC [22383][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 23:36:01.236 UTC [22383][client backend] [040_pg_createsubscriber.pl][:0] LOG: disconnection: session time: 0:00:00.009 user=postgres database=pg1 host=[local] pg_createsubscriber: publisher: wal_level: logical pg_createsubscriber: publisher: max_replication_slots: 10 pg_createsubscriber: publisher: current replication slots: 1 pg_createsubscriber: publisher: max_wal_senders: 10 pg_createsubscriber: publisher: current wal senders: 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 23:36:01.253 UTC [22361][postmaster] LOG: received fast shutdown request 2024-04-10 23:36:01.253 UTC [22361][postmaster] LOG: aborting any active transactions 2024-04-10 23:36:01.255 UTC [22373][walreceiver] FATAL: terminating walreceiver process due to administrator command 2024-04-10 23:36:01.255 UTC [22365][checkpointer] LOG: shutting down 2024-04-10 23:36:01.256 UTC [22361][postmaster] LOG: database system is shut down pg_createsubscriber: server was stopped [23:36:01.361](0.344s) not ok 27 - run pg_createsubscriber on node S [23:36:01.363](0.002s) # Failed test 'run pg_createsubscriber on node S' # at /tmp/cirrus-ci-build/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl line 297. [23:36:01.466](0.104s) not ok 28 - the physical replication slot used as primary_slot_name has been removed [23:36:01.471](0.005s) # 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. [23:36:01.471](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 22428 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 22027 ### 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 22428 ### 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" [23:36:01.892](0.421s) # Tests were run but no plan was declared and done_testing() was not seen. [23:36:01.892](0.000s) # Looks like your test exited with 4 just after 28.