[13:59:09.485](0.019s) # testing using transfer mode --clone # Checking port 30012 # Found port 30012 Name: old_node Data directory: /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata Backup directory: /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/backup Archive directory: /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/archives Connection string: port=30012 host=/var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY Log file: /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log [13:59:09.524](0.039s) # initializing database system by running initdb # Running: initdb -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -A trust -N --wal-segsize 1 --allow-group-access --encoding UTF-8 --lc-collate C --lc-ctype C --locale-provider builtin --builtin-locale C.UTF-8 The files belonging to this database system will be owned by user "admin". This user must also own the server process. The database cluster will be initialized with this locale configuration: locale provider: builtin default collation: C.UTF-8 LC_COLLATE: C LC_CTYPE: C LC_MESSAGES: C LC_MONETARY: en_US.UTF-8 LC_NUMERIC: en_US.UTF-8 LC_TIME: en_US.UTF-8 The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_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 /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l logfile start # Running: /Users/admin/pgsql/build/src/test/regress/pg_regress --config-auth /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata ### Starting node "old_node" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log -o --cluster-name=old_node start waiting for server to start.... done server started # Postmaster PID for node "old_node" is 6993 [13:59:11.331](1.807s) ok 1 - check locales in original cluster # Running: createdb regression\"\  !"#$%&'()*+,-\\"\\\ [13:59:11.589](0.257s) ok 2 - created database with ASCII characters from 1 to 45 # Running: createdb regression./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ [13:59:11.793](0.204s) ok 3 - created database with ASCII characters from 46 to 90 # Running: createdb regression[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ [13:59:11.920](0.127s) ok 4 - created database with ASCII characters from 91 to 127 [13:59:11.920](0.001s) # running regression tests in old instance # using postmaster on /var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY, port 30012 ok 1 - test_setup 306 ms # parallel group (20 tests): pg_lsn regproc money int2 txid uuid float8 varchar char oid name int4 text boolean float4 bit int8 enum numeric rangetypes ok 2 + boolean 362 ms ok 3 + char 329 ms ok 4 + name 351 ms ok 5 + varchar 322 ms ok 6 + text 351 ms ok 7 + int2 132 ms ok 8 + int4 347 ms ok 9 + int8 369 ms ok 10 + oid 332 ms ok 11 + float4 352 ms ok 12 + float8 281 ms ok 13 + bit 349 ms ok 14 + numeric 652 ms ok 15 + txid 216 ms ok 16 + uuid 220 ms ok 17 + enum 413 ms ok 18 + money 85 ms ok 19 + rangetypes 676 ms ok 20 + pg_lsn 49 ms ok 21 + regproc 49 ms # parallel group (20 tests): md5 lseg circle time line timetz date path point macaddr numerology macaddr8 inet polygon interval strings box timestamp timestamptz multirangetypes ok 22 + strings 460 ms ok 23 + md5 88 ms ok 24 + numerology 226 ms ok 25 + point 200 ms ok 26 + lseg 86 ms ok 27 + line 190 ms ok 28 + box 492 ms ok 29 + path 186 ms ok 30 + polygon 377 ms ok 31 + circle 131 ms ok 32 + date 175 ms ok 33 + time 132 ms ok 34 + timetz 169 ms ok 35 + timestamp 576 ms ok 36 + timestamptz 633 ms ok 37 + interval 404 ms ok 38 + inet 237 ms ok 39 + macaddr 169 ms ok 40 + macaddr8 191 ms ok 41 + multirangetypes 726 ms # parallel group (13 tests): misc_sanity comments unicode mvcc type_sanity xid tstypes horology expressions geometry opr_sanity regex database ok 42 + geometry 312 ms ok 43 + horology 301 ms ok 44 + tstypes 215 ms ok 45 + regex 402 ms ok 46 + type_sanity 161 ms ok 47 + opr_sanity 397 ms ok 48 + misc_sanity 73 ms ok 49 + comments 71 ms ok 50 + expressions 288 ms ok 51 + unicode 88 ms ok 52 + xid 181 ms ok 53 + mvcc 97 ms ok 54 + database 3064 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 55 + copy 492 ms ok 56 + copyselect 66 ms ok 57 + copydml 157 ms ok 58 + insert 992 ms ok 59 + insert_conflict 791 ms # parallel group (7 tests): create_function_c create_schema create_operator create_type create_misc create_procedure create_table ok 60 + create_function_c 38 ms ok 61 + create_misc 78 ms ok 62 + create_operator 71 ms ok 63 + create_procedure 78 ms ok 64 + create_table 648 ms ok 65 + create_type 69 ms ok 66 + create_schema 60 ms # parallel group (5 tests): index_including_gist create_index_spgist index_including create_view create_index ok 67 + create_index 3767 ms ok 68 + create_index_spgist 489 ms ok 69 + create_view 831 ms ok 70 + index_including 520 ms ok 71 + index_including_gist 422 ms # parallel group (16 tests): hash_func create_cast create_aggregate create_function_sql drop_if_exists roleattributes errors select typed_table infinite_recurse create_am constraints vacuum inherit updatable_views triggers ok 72 + create_aggregate 185 ms ok 73 + create_function_sql 227 ms ok 74 + create_cast 174 ms ok 75 + constraints 870 ms ok 76 + triggers 3835 ms ok 77 + select 407 ms ok 78 + inherit 2386 ms ok 79 + typed_table 488 ms ok 80 + vacuum 1373 ms ok 81 + drop_if_exists 278 ms ok 82 + updatable_views 2382 ms ok 83 + roleattributes 279 ms ok 84 + create_am 599 ms ok 85 + hash_func 121 ms ok 86 + errors 280 ms ok 87 + infinite_recurse 463 ms ok 88 - sanity_check 168 ms # parallel group (20 tests): select_distinct_on select_having delete select_implicit random case select_into namespace select_distinct prepared_xacts union subselect transactions portals arrays aggregates update btree_index join hash_index ok 89 + select_into 369 ms ok 90 + select_distinct 419 ms ok 91 + select_distinct_on 70 ms ok 92 + select_implicit 157 ms ok 93 + select_having 92 ms ok 94 + subselect 776 ms ok 95 + union 684 ms ok 96 + case 337 ms ok 97 + join 2629 ms ok 98 + aggregates 1548 ms ok 99 + transactions 889 ms ok 100 + random 297 ms ok 101 + portals 938 ms ok 102 + arrays 1207 ms ok 103 + btree_index 2282 ms ok 104 + hash_index 2801 ms ok 105 + update 1984 ms ok 106 + delete 78 ms ok 107 + namespace 372 ms ok 108 + prepared_xacts 427 ms # parallel group (20 tests): object_address tablesample lock drop_operator init_privs security_label replica_identity collate password groupingsets identity generated spgist gin matview gist rowsecurity join_hash brin privileges ok 109 + brin 3958 ms ok 110 + gin 1935 ms ok 111 + gist 2644 ms ok 112 + spgist 1624 ms ok 113 + privileges 4194 ms ok 114 + init_privs 454 ms ok 115 + security_label 481 ms ok 116 + collate 579 ms ok 117 + matview 2041 ms ok 118 + lock 373 ms ok 119 + replica_identity 500 ms ok 120 + rowsecurity 2905 ms ok 121 + object_address 250 ms ok 122 + tablesample 333 ms ok 123 + groupingsets 836 ms ok 124 + drop_operator 374 ms ok 125 + password 591 ms ok 126 + identity 838 ms ok 127 + generated 1401 ms ok 128 + join_hash 3769 ms # parallel group (2 tests): brin_bloom brin_multi ok 129 + brin_bloom 137 ms ok 130 + brin_multi 1024 ms # parallel group (17 tests): dbsize async alter_operator tid alter_generic create_role collate.utf8 tidrangescan tidscan tsrf misc incremental_sort sysviews misc_functions merge create_table_like collate.icu.utf8 ok 131 + create_table_like 1074 ms ok 132 + alter_generic 329 ms ok 133 + alter_operator 283 ms ok 134 + misc 553 ms ok 135 + async 222 ms ok 136 + dbsize 209 ms ok 137 + merge 947 ms ok 138 + misc_functions 659 ms ok 139 + sysviews 634 ms ok 140 + tsrf 428 ms ok 141 + tid 302 ms ok 142 + tidscan 370 ms ok 143 + tidrangescan 350 ms ok 144 + collate.utf8 308 ms not ok 145 + collate.icu.utf8 1362 ms ok 146 + incremental_sort 504 ms ok 147 + create_role 287 ms # parallel group (7 tests): collate.windows.win1252 collate.linux.utf8 amutils psql_crosstab rules psql stats_ext ok 148 + rules 742 ms ok 149 + psql 750 ms ok 150 + psql_crosstab 160 ms ok 151 + amutils 117 ms ok 152 + stats_ext 1471 ms ok 153 + collate.linux.utf8 93 ms ok 154 + collate.windows.win1252 86 ms ok 155 - select_parallel 1067 ms ok 156 - write_parallel 268 ms ok 157 - vacuum_parallel 119 ms # parallel group (2 tests): subscription publication ok 158 + publication 694 ms ok 159 + subscription 106 ms # parallel group (17 tests): advisory_lock portals_p2 xmlmap combocid functional_deps select_views equivclass indirect_toast bitmapops guc dependency tsdicts window tsearch foreign_data cluster foreign_key ok 160 + select_views 499 ms ok 161 + portals_p2 401 ms ok 162 + foreign_key 3431 ms ok 163 + cluster 1450 ms ok 164 + dependency 704 ms ok 165 + guc 685 ms ok 166 + bitmapops 679 ms ok 167 + combocid 433 ms ok 168 + tsearch 1056 ms ok 169 + tsdicts 833 ms ok 170 + foreign_data 1396 ms ok 171 + window 970 ms ok 172 + xmlmap 391 ms ok 173 + functional_deps 437 ms ok 174 + advisory_lock 358 ms ok 175 + indirect_toast 568 ms ok 176 + equivclass 541 ms # parallel group (9 tests): json_encoding jsonpath_encoding sqljson_jsontable jsonpath sqljson json sqljson_queryfuncs jsonb_jsonpath jsonb ok 177 + json 201 ms ok 178 + jsonb 606 ms ok 179 + json_encoding 72 ms ok 180 + jsonpath 189 ms ok 181 + jsonpath_encoding 145 ms ok 182 + jsonb_jsonpath 314 ms ok 183 + sqljson 193 ms ok 184 + sqljson_queryfuncs 216 ms ok 185 + sqljson_jsontable 173 ms # parallel group (18 tests): prepare limit returning rowtypes with polymorphism conversion temp largeobject plancache rangefuncs copy2 sequence truncate domain xml plpgsql alter_table ok 186 + plancache 542 ms ok 187 + limit 281 ms ok 188 + plpgsql 2315 ms ok 189 + copy2 674 ms ok 190 + temp 494 ms ok 191 + domain 1009 ms ok 192 + rangefuncs 588 ms ok 193 + prepare 100 ms ok 194 + conversion 468 ms ok 195 + truncate 753 ms ok 196 + alter_table 3292 ms ok 197 + sequence 666 ms ok 198 + polymorphism 449 ms ok 199 + rowtypes 430 ms ok 200 + returning 375 ms ok 201 + largeobject 466 ms ok 202 + with 429 ms ok 203 + xml 1674 ms # parallel group (15 tests): hash_part predicate reloptions partition_info explain compression memoize partition_merge partition_aggregate tuplesort partition_split partition_prune stats indexing partition_join ok 204 + partition_merge 2033 ms ok 205 + partition_split 2685 ms ok 206 + partition_join 3291 ms ok 207 + partition_prune 2814 ms ok 208 + reloptions 422 ms ok 209 + hash_part 350 ms ok 210 + indexing 3276 ms ok 211 + partition_aggregate 2193 ms ok 212 + partition_info 404 ms ok 213 + tuplesort 2421 ms ok 214 + explain 396 ms ok 215 + compression 453 ms ok 216 + memoize 1389 ms ok 217 + stats 2794 ms ok 218 + predicate 296 ms # parallel group (2 tests): oidjoins event_trigger ok 219 + oidjoins 200 ms ok 220 + event_trigger 875 ms ok 221 - event_trigger_login 63 ms ok 222 - fast_default 407 ms ok 223 - tablespace 1769 ms 1..223 # 1 of 223 tests failed. # The differences that caused some tests to fail can be viewed in the file "/Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/regression.diffs". # A copy of the test summary that you see above is saved in the file "/Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/regression.out". === dumping /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/regression.diffs === diff -U3 /Users/admin/pgsql/src/test/regress/expected/collate.icu.utf8.out /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/results/collate.icu.utf8.out --- /Users/admin/pgsql/src/test/regress/expected/collate.icu.utf8.out 2024-07-25 13:57:51 +++ /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/results/collate.icu.utf8.out 2024-07-25 13:59:38 @@ -1843,13 +1843,21 @@ CREATE TABLE test10pk (x text COLLATE case_sensitive PRIMARY KEY); INSERT INTO test10pk VALUES ('abc'), ('def'), ('ghi'); CREATE TABLE test10fk (x text COLLATE case_insensitive REFERENCES test10pk (x) ON UPDATE CASCADE ON DELETE CASCADE); +ERROR: foreign key constraint "test10fk_x_fkey" cannot be implemented +DETAIL: Foreign key cannot use indeterministic collations for referencing table "test10fk" +HINT: You may make the foreign key collations deterministic. INSERT INTO test10fk VALUES ('abc'); -- ok +ERROR: relation "test10fk" does not exist +LINE 1: INSERT INTO test10fk VALUES ('abc'); + ^ INSERT INTO test10fk VALUES ('ABC'); -- error -ERROR: insert or update on table "test10fk" violates foreign key constraint "test10fk_x_fkey" -DETAIL: Key (x)=(ABC) is not present in table "test10pk". +ERROR: relation "test10fk" does not exist +LINE 1: INSERT INTO test10fk VALUES ('ABC'); + ^ INSERT INTO test10fk VALUES ('xyz'); -- error -ERROR: insert or update on table "test10fk" violates foreign key constraint "test10fk_x_fkey" -DETAIL: Key (x)=(xyz) is not present in table "test10pk". +ERROR: relation "test10fk" does not exist +LINE 1: INSERT INTO test10fk VALUES ('xyz'); + ^ SELECT * FROM test10pk; x ----- @@ -1859,21 +1867,18 @@ (3 rows) SELECT * FROM test10fk; - x ------ - abc -(1 row) - +ERROR: relation "test10fk" does not exist +LINE 1: SELECT * FROM test10fk; + ^ -- restrict update even though the values are "equal" in the FK table UPDATE test10fk SET x = 'ABC' WHERE x = 'abc'; -- error -ERROR: insert or update on table "test10fk" violates foreign key constraint "test10fk_x_fkey" -DETAIL: Key (x)=(ABC) is not present in table "test10pk". +ERROR: relation "test10fk" does not exist +LINE 1: UPDATE test10fk SET x = 'ABC' WHERE x = 'abc'; + ^ SELECT * FROM test10fk; - x ------ - abc -(1 row) - +ERROR: relation "test10fk" does not exist +LINE 1: SELECT * FROM test10fk; + ^ DELETE FROM test10pk WHERE x = 'abc'; SELECT * FROM test10pk; x @@ -1883,19 +1888,28 @@ (2 rows) SELECT * FROM test10fk; - x ---- -(0 rows) - +ERROR: relation "test10fk" does not exist +LINE 1: SELECT * FROM test10fk; + ^ -- PK is case-insensitive, FK is case-sensitive CREATE TABLE test11pk (x text COLLATE case_insensitive PRIMARY KEY); INSERT INTO test11pk VALUES ('abc'), ('def'), ('ghi'); CREATE TABLE test11fk (x text COLLATE case_sensitive REFERENCES test11pk (x) ON UPDATE CASCADE ON DELETE CASCADE); +ERROR: foreign key constraint "test11fk_x_fkey" cannot be implemented +DETAIL: Cannot have indeterministic collations in primary key for referenced table "test11pk" +HINT: You may make the primary key collations deterministic. INSERT INTO test11fk VALUES ('abc'); -- ok +ERROR: relation "test11fk" does not exist +LINE 1: INSERT INTO test11fk VALUES ('abc'); + ^ INSERT INTO test11fk VALUES ('ABC'); -- ok +ERROR: relation "test11fk" does not exist +LINE 1: INSERT INTO test11fk VALUES ('ABC'); + ^ INSERT INTO test11fk VALUES ('xyz'); -- error -ERROR: insert or update on table "test11fk" violates foreign key constraint "test11fk_x_fkey" -DETAIL: Key (x)=(xyz) is not present in table "test11pk". +ERROR: relation "test11fk" does not exist +LINE 1: INSERT INTO test11fk VALUES ('xyz'); + ^ SELECT * FROM test11pk; x ----- @@ -1905,21 +1919,15 @@ (3 rows) SELECT * FROM test11fk; - x ------ - abc - ABC -(2 rows) - +ERROR: relation "test11fk" does not exist +LINE 1: SELECT * FROM test11fk; + ^ -- cascade update even though the values are "equal" in the PK table UPDATE test11pk SET x = 'ABC' WHERE x = 'abc'; SELECT * FROM test11fk; - x ------ - ABC - ABC -(2 rows) - +ERROR: relation "test11fk" does not exist +LINE 1: SELECT * FROM test11fk; + ^ DELETE FROM test11pk WHERE x = 'abc'; SELECT * FROM test11pk; x @@ -1929,10 +1937,9 @@ (2 rows) SELECT * FROM test11fk; - x ---- -(0 rows) - +ERROR: relation "test11fk" does not exist +LINE 1: SELECT * FROM test11fk; + ^ -- partitioning CREATE TABLE test20 (a int, b text COLLATE case_insensitive) PARTITION BY LIST (b); CREATE TABLE test20_1 PARTITION OF test20 FOR VALUES IN ('abc'); === EOF === [13:59:59.364](47.444s) not ok 5 - regression tests pass [13:59:59.364](0.000s) # Failed test 'regression tests pass' # at /Users/admin/pgsql/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 260. [13:59:59.364](0.000s) # got: '256' # expected: '0' # Checking port 30013 # Found port 30013 Name: new_node Data directory: /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata Backup directory: /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/backup Archive directory: /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/archives Connection string: port=30013 host=/var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY Log file: /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_new_node.log [13:59:59.399](0.035s) # initializing database system by running initdb # Running: initdb -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -A trust -N --wal-segsize 1 --allow-group-access --encoding SQL_ASCII --locale-provider libc The files belonging to this database system will be owned by user "admin". 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 text search configuration will be set to "english". Data page checksums are disabled. creating directory /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_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 /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -l logfile start # Running: /Users/admin/pgsql/build/src/test/regress/pg_regress --config-auth /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata # Running: pg_dumpall --no-sync -d port=30012 host=/var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY dbname='postgres' -f /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_zYw2/dump1.sql [14:00:05.366](5.967s) ok 6 - dump before running pg_upgrade ### Stopping node "old_node" using mode fast # Running: pg_ctl -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -m fast stop waiting for server to shut down.... done server stopped # No postmaster PID for node "old_node" # Running: pg_upgrade --no-sync -d /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin/does/not/exist/ -B /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin -s /var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY -p 30012 -P 30013 --clone --check check for "/Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin/does/not/exist" failed: No such file or directory Failure, exiting [14:00:07.027](1.661s) ok 7 - run of pg_upgrade --check for new instance with incorrect binary path [14:00:07.027](0.000s) ok 8 - pg_upgrade_output.d/ not removed after pg_upgrade failure # Running: pg_upgrade --no-sync -d /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin -B /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin -s /var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY -p 30012 -P 30013 --clone --check [14:00:08.917](1.890s) ok 9 - invalid database causes failure status (got 1 vs expected 1) [14:00:08.918](0.001s) ok 10 - invalid database causes failure stdout /(?^:invalid)/ [14:00:08.918](0.000s) ok 11 - invalid database causes failure stderr /(?^:^$)/ ### Starting node "old_node" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log -o --cluster-name=old_node start waiting for server to start.... done server started # Postmaster PID for node "old_node" is 15255 ### Stopping node "old_node" using mode fast # Running: pg_ctl -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -m fast stop waiting for server to shut down.... done server stopped # No postmaster PID for node "old_node" # Running: pg_upgrade --no-sync -d /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin -B /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin -s /var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY -p 30012 -P 30013 --clone --check Performing Consistency Checks ----------------------------- Checking cluster versions ok Checking database user is the install user ok Checking database connection settings ok Checking for prepared transactions ok Checking for contrib/isn with bigint-passing mismatch ok Checking for valid logical replication slots ok Checking for subscription state ok Checking for data type usage ok Checking for presence of required libraries ok Checking database user is the install user ok Checking for prepared transactions ok Checking for new cluster tablespace directories ok *Clusters are compatible* [14:00:11.164](2.246s) ok 12 - run of pg_upgrade --check for new instance [14:00:11.164](0.000s) ok 13 - pg_upgrade_output.d/ removed after pg_upgrade --check success # Running: pg_upgrade --no-sync -d /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin -B /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin -s /var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY -p 30012 -P 30013 --clone Performing Consistency Checks ----------------------------- Checking cluster versions ok Checking database user is the install user ok Checking database connection settings ok Checking for prepared transactions ok Checking for contrib/isn with bigint-passing mismatch ok Checking for valid logical replication slots ok Checking for subscription state ok Checking for data type usage ok Creating dump of global objects ok Creating dump of database schemas ok Checking for presence of required libraries ok Checking database user is the install user ok Checking for prepared transactions ok Checking for new cluster tablespace directories ok If pg_upgrade fails after this point, you must re-initdb the new cluster before continuing. Performing Upgrade ------------------ Setting locale and encoding for new cluster ok Analyzing all rows in the new cluster ok Freezing all rows in the new cluster ok Deleting files from new pg_xact ok Copying old pg_xact to new server ok Setting oldest XID for new cluster ok Setting next transaction ID and epoch for new cluster ok Deleting files from new pg_multixact/offsets ok Copying old pg_multixact/offsets to new server ok Deleting files from new pg_multixact/members ok Copying old pg_multixact/members to new server ok Setting next multixact ID and offset for new cluster ok Resetting WAL archives ok Setting frozenxid and minmxid counters in new cluster ok Restoring global objects in the new cluster ok Restoring database schemas in the new cluster ok Cloning user relation files ok Setting next OID for new cluster ok Creating script to delete old cluster ok Checking for extension updates ok Upgrade Complete ---------------- Optimizer statistics are not transferred by pg_upgrade. Once you start the new server, consider running: /Users/admin/pgsql/build/tmp_install/usr/local/pgsql/bin/vacuumdb --all --analyze-in-stages Running this script will delete the old cluster's data files: ./delete_old_cluster.sh [14:00:34.290](23.126s) ok 14 - run of pg_upgrade for new instance [14:00:34.290](0.000s) ok 15 - pg_upgrade_output.d/ removed after pg_upgrade success ### Starting node "new_node" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -l /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_new_node.log -o --cluster-name=new_node start waiting for server to start.... done server started # Postmaster PID for node "new_node" is 18119 [14:00:34.485](0.194s) ok 16 - check that locales in new cluster match original cluster # Running: pg_dumpall --no-sync -d port=30013 host=/var/folders/29/gl405mp12vq9wrgkv_dhh73h0000gn/T/7yRqbdWrdY dbname='postgres' -f /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_zYw2/dump2.sql [14:00:40.743](6.258s) ok 17 - dump after running pg_upgrade [14:00:41.013](0.269s) ok 18 - old and new dumps match after pg_upgrade [14:00:41.013](0.000s) 1..18 ### Stopping node "new_node" using mode immediate # Running: pg_ctl -D /Users/admin/pgsql/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -m immediate stop waiting for server to shut down.... done server stopped # No postmaster PID for node "new_node" [14:00:41.187](0.174s) # Looks like you failed 1 test of 18.