[05:11:23.914](0.025s) # testing using transfer mode --copy # Checking port 64497 # Found port 64497 Name: old_node Data directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/archives Connection string: port=64497 host=/tmp/0htOuYT_ZX Log file: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log [05:11:23.935](0.021s) # initializing database system by running initdb # Running: initdb -D /tmp/cirrus-ci-build/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 --locale C --locale-provider icu --icu-locale fr-CA The files belonging to this database system will be owned by user "postgres". This user must also own the server process. Using language tag "fr-CA" for ICU locale "fr-CA". The database cluster will be initialized with this locale configuration: provider: icu ICU locale: fr-CA LC_COLLATE: C LC_CTYPE: C LC_MESSAGES: C LC_MONETARY: C LC_NUMERIC: C LC_TIME: C The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /tmp/cirrus-ci-build/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 ... 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_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_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_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata ### Starting node "old_node" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l /tmp/cirrus-ci-build/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 22318 [05:11:25.728](1.793s) ok 1 - check locales in original cluster # Running: createdb regression\"\  !"#$%&'()*+,-\\"\\\ [05:11:25.893](0.165s) ok 2 - created database with ASCII characters from 1 to 45 # Running: createdb regression./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ [05:11:26.072](0.179s) ok 3 - created database with ASCII characters from 46 to 90 # Running: createdb regression[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ [05:11:26.712](0.640s) ok 4 - created database with ASCII characters from 91 to 127 [05:11:26.712](0.000s) # running regression tests in old instance # using postmaster on /tmp/0htOuYT_ZX, port 64497 ok 1 - test_setup 363 ms # parallel group (20 tests): pg_lsn txid text oid regproc money int2 char varchar int4 float4 name uuid int8 float8 enum bit boolean rangetypes numeric ok 2 + boolean 294 ms ok 3 + char 137 ms ok 4 + name 159 ms ok 5 + varchar 140 ms ok 6 + text 96 ms ok 7 + int2 131 ms ok 8 + int4 140 ms ok 9 + int8 174 ms ok 10 + oid 102 ms ok 11 + float4 152 ms ok 12 + float8 186 ms ok 13 + bit 281 ms ok 14 + numeric 1120 ms ok 15 + txid 86 ms ok 16 + uuid 170 ms ok 17 + enum 240 ms ok 18 + money 114 ms ok 19 + rangetypes 949 ms ok 20 + pg_lsn 67 ms ok 21 + regproc 101 ms # parallel group (20 tests): md5 circle time lseg path macaddr8 line macaddr timetz date numerology inet point timestamp strings interval timestamptz polygon multirangetypes box ok 22 + strings 547 ms ok 23 + md5 62 ms ok 24 + numerology 225 ms ok 25 + point 455 ms ok 26 + lseg 112 ms ok 27 + line 125 ms ok 28 + box 1408 ms ok 29 + path 116 ms ok 30 + polygon 1088 ms ok 31 + circle 66 ms ok 32 + date 175 ms ok 33 + time 110 ms ok 34 + timetz 131 ms ok 35 + timestamp 533 ms ok 36 + timestamptz 722 ms ok 37 + interval 661 ms ok 38 + inet 436 ms ok 39 + macaddr 124 ms ok 40 + macaddr8 115 ms ok 41 + multirangetypes 1307 ms # parallel group (12 tests): comments unicode misc_sanity xid tstypes expressions mvcc type_sanity geometry horology regex opr_sanity ok 42 + geometry 321 ms ok 43 + horology 374 ms ok 44 + tstypes 144 ms ok 45 + regex 644 ms ok 46 + type_sanity 276 ms ok 47 + opr_sanity 780 ms ok 48 + misc_sanity 80 ms ok 49 + comments 57 ms ok 50 + expressions 187 ms ok 51 + unicode 70 ms ok 52 + xid 118 ms ok 53 + mvcc 194 ms # parallel group (5 tests): copydml copyselect copy insert_conflict insert ok 54 + copy 233 ms ok 55 + copyselect 84 ms ok 56 + copydml 59 ms ok 57 + insert 1022 ms ok 58 + insert_conflict 498 ms # parallel group (7 tests): create_function_c create_operator create_misc create_procedure create_type create_schema create_table ok 59 + create_function_c 44 ms ok 60 + create_misc 113 ms ok 61 + create_operator 112 ms ok 62 + create_procedure 129 ms ok 63 + create_table 989 ms ok 64 + create_type 148 ms ok 65 + create_schema 170 ms # parallel group (5 tests): index_including index_including_gist create_view create_index_spgist create_index ok 66 + create_index 1864 ms ok 67 + create_index_spgist 1558 ms ok 68 + create_view 855 ms ok 69 + index_including 423 ms ok 70 + index_including_gist 711 ms # parallel group (16 tests): create_cast errors create_aggregate roleattributes hash_func drop_if_exists create_am typed_table create_function_sql select infinite_recurse constraints vacuum updatable_views inherit triggers ok 71 + create_aggregate 261 ms ok 72 + create_function_sql 515 ms ok 73 + create_cast 98 ms ok 74 + constraints 1173 ms ok 75 + triggers 4465 ms ok 76 + select 564 ms ok 77 + inherit 2573 ms ok 78 + typed_table 504 ms ok 79 + vacuum 1371 ms ok 80 + drop_if_exists 279 ms ok 81 + updatable_views 1952 ms ok 82 + roleattributes 268 ms ok 83 + create_am 494 ms ok 84 + hash_func 270 ms ok 85 + errors 129 ms ok 86 + infinite_recurse 1097 ms ok 87 - sanity_check 137 ms # parallel group (20 tests): select_distinct_on delete select_having case namespace random select_implicit select_into prepared_xacts transactions portals union arrays select_distinct subselect hash_index update aggregates join btree_index ok 88 + select_into 276 ms ok 89 + select_distinct 739 ms ok 90 + select_distinct_on 67 ms ok 91 + select_implicit 186 ms ok 92 + select_having 104 ms ok 93 + subselect 887 ms ok 94 + union 548 ms ok 95 + case 137 ms ok 96 + join 2601 ms ok 97 + aggregates 2313 ms ok 98 + transactions 455 ms ok 99 + random 170 ms ok 100 + portals 491 ms ok 101 + arrays 721 ms ok 102 + btree_index 2879 ms ok 103 + hash_index 1351 ms ok 104 + update 1539 ms ok 105 + delete 90 ms ok 106 + namespace 147 ms ok 107 + prepared_xacts 275 ms # parallel group (20 tests): init_privs security_label drop_operator password lock tablesample object_address replica_identity collate matview identity groupingsets spgist rowsecurity generated gist gin brin join_hash privileges ok 108 + brin 6617 ms ok 109 + gin 2532 ms ok 110 + gist 2412 ms ok 111 + spgist 2065 ms ok 112 + privileges 7030 ms ok 113 + init_privs 78 ms ok 114 + security_label 130 ms ok 115 + collate 948 ms ok 116 + matview 1345 ms ok 117 + lock 304 ms ok 118 + replica_identity 712 ms ok 119 + rowsecurity 2074 ms ok 120 + object_address 410 ms ok 121 + tablesample 332 ms ok 122 + groupingsets 1973 ms ok 123 + drop_operator 133 ms ok 124 + password 281 ms ok 125 + identity 1429 ms ok 126 + generated 2093 ms ok 127 + join_hash 6633 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 119 ms ok 129 + brin_multi 653 ms # parallel group (17 tests): async dbsize tid tsrf tidscan alter_operator alter_generic create_role sysviews misc_functions tidrangescan without_overlaps incremental_sort create_table_like merge misc collate.icu.utf8 ok 130 + create_table_like 882 ms ok 131 + alter_generic 225 ms ok 132 + alter_operator 173 ms ok 133 + misc 993 ms ok 134 + async 41 ms ok 135 + dbsize 108 ms ok 136 + merge 955 ms ok 137 + misc_functions 278 ms ok 138 + sysviews 254 ms ok 139 + tsrf 138 ms ok 140 + tid 109 ms ok 141 + tidscan 153 ms ok 142 + tidrangescan 297 ms ok 143 + collate.icu.utf8 1126 ms ok 144 + incremental_sort 689 ms ok 145 + create_role 239 ms ok 146 + without_overlaps 604 ms # parallel group (7 tests): collate.windows.win1252 collate.linux.utf8 amutils psql_crosstab psql rules stats_ext ok 147 + rules 1209 ms ok 148 + psql 982 ms ok 149 + psql_crosstab 90 ms ok 150 + amutils 54 ms ok 151 + stats_ext 4356 ms ok 152 + collate.linux.utf8 34 ms ok 153 + collate.windows.win1252 29 ms ok 154 - select_parallel 7771 ms ok 155 - write_parallel 388 ms ok 156 - vacuum_parallel 371 ms # parallel group (2 tests): subscription publication ok 157 + publication 3085 ms ok 158 + subscription 95 ms # parallel group (17 tests): portals_p2 advisory_lock combocid functional_deps tsdicts xmlmap guc dependency equivclass select_views window bitmapops cluster indirect_toast foreign_data tsearch foreign_key ok 159 + select_views 544 ms ok 160 + portals_p2 131 ms ok 161 + foreign_key 4258 ms ok 162 + cluster 1103 ms ok 163 + dependency 309 ms ok 164 + guc 278 ms ok 165 + bitmapops 1048 ms ok 166 + combocid 150 ms ok 167 + tsearch 3108 ms ok 168 + tsdicts 191 ms ok 169 + foreign_data 2537 ms ok 170 + window 927 ms ok 171 + xmlmap 191 ms ok 172 + functional_deps 175 ms ok 173 + advisory_lock 143 ms ok 174 + indirect_toast 1174 ms ok 175 + equivclass 308 ms # parallel group (8 tests): jsonpath_encoding json_encoding jsonpath stats_export_import sqljson json jsonb_jsonpath jsonb ok 176 + json 501 ms ok 177 + jsonb 1176 ms ok 178 + json_encoding 87 ms ok 179 + jsonpath 156 ms ok 180 + jsonpath_encoding 63 ms ok 181 + jsonb_jsonpath 537 ms ok 182 + sqljson 320 ms not ok 183 + stats_export_import 283 ms # parallel group (18 tests): prepare returning plancache limit temp conversion sequence copy2 polymorphism rowtypes truncate largeobject domain with rangefuncs xml plpgsql alter_table ok 184 + plancache 390 ms ok 185 + limit 420 ms ok 186 + plpgsql 5004 ms ok 187 + copy2 792 ms ok 188 + temp 510 ms ok 189 + domain 1141 ms ok 190 + rangefuncs 1437 ms ok 191 + prepare 175 ms ok 192 + conversion 514 ms ok 193 + truncate 1033 ms ok 194 + alter_table 5537 ms ok 195 + sequence 744 ms ok 196 + polymorphism 871 ms ok 197 + rowtypes 1032 ms ok 198 + returning 255 ms ok 199 + largeobject 1078 ms ok 200 + with 1248 ms ok 201 + xml 3012 ms # parallel group (13 tests): hash_part reloptions explain partition_info predicate compression memoize stats partition_aggregate partition_join indexing tuplesort partition_prune ok 202 + partition_join 2314 ms ok 203 + partition_prune 2878 ms ok 204 + reloptions 140 ms ok 205 + hash_part 112 ms ok 206 + indexing 2486 ms ok 207 + partition_aggregate 2164 ms ok 208 + partition_info 209 ms ok 209 + tuplesort 2514 ms ok 210 + explain 203 ms ok 211 + compression 469 ms ok 212 + memoize 782 ms ok 213 + stats 1512 ms ok 214 + predicate 229 ms # parallel group (2 tests): oidjoins event_trigger ok 215 + oidjoins 466 ms ok 216 + event_trigger 508 ms ok 217 - event_trigger_login 83 ms ok 218 - fast_default 191 ms ok 219 - tablespace 499 ms 1..219 # 1 of 219 tests failed. # The differences that caused some tests to fail can be viewed in the file "/tmp/cirrus-ci-build/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 "/tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/regression.out". === dumping /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/regression.diffs === diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/stats_export_import.out /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/results/stats_export_import.out --- /tmp/cirrus-ci-build/src/test/regress/expected/stats_export_import.out 2024-02-22 05:08:23.300211573 +0000 +++ /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/results/stats_export_import.out 2024-02-22 05:12:12.680281437 +0000 @@ -630,40 +630,32 @@ \gset SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_types_doc'::jsonb, true, true); -ERROR: statistic export JSON document "types" has duplicate rows with oid = 2 +ERROR: Cannot import statistics from server version 170000 to -1232949144 SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_collations_doc'::jsonb, true, true); -ERROR: statistic export JSON document "collations" has duplicate rows with oid = 1 +ERROR: Cannot import statistics from server version 170000 to -1232387640 SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_operators_doc'::jsonb, true, true); -ERROR: statistic export JSON document "operators" has duplicate rows with oid = 3 +ERROR: Cannot import statistics from server version 170000 to -1232330152 SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_attributes_doc'::jsonb, true, true); -ERROR: statistic export JSON document "attributes" has duplicate rows with attnum = 4 +ERROR: Cannot import statistics from server version 170000 to -1233197944 SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_statistics_doc'::jsonb, true, true); -ERROR: statistic export JSON document "statistics" has duplicate rows with staattnum = 1, stainherit = f +ERROR: Cannot import statistics from server version 170000 to -1233214360 -- Import stats SELECT pg_import_rel_stats( 'stats_export_import.test'::regclass, :'table_stats_json'::jsonb, true, false); - pg_import_rel_stats ---------------------- - t -(1 row) - +ERROR: Cannot import statistics from server version 170000 to -1233936840 SELECT pg_import_rel_stats( 'stats_export_import.is_odd'::regclass, :'index_stats_json'::jsonb, true, false); - pg_import_rel_stats ---------------------- - t -(1 row) - +ERROR: Cannot import statistics from server version 170000 to -1232949144 SELECT pg_import_ext_stats( e.oid, :'ext_stats_json'::jsonb, @@ -672,11 +664,7 @@ FROM pg_statistic_ext AS e WHERE e.stxrelid = 'stats_export_import.test'::regclass AND e.stxname = 'evens_test'; - pg_import_ext_stats ---------------------- - t -(1 row) - +ERROR: Cannot import statistics from server version 170000 to -1232387640 -- This should return 0 rows SELECT staattnum, stainherit, stanullfrac, stawidth, stadistinct, stakind1, stakind2, stakind3, stakind4, stakind5, @@ -694,9 +682,14 @@ FROM pg_statistic WHERE starelid IN ('stats_export_import.test'::regclass, 'stats_export_import.is_odd'::regclass); - staattnum | stainherit | stanullfrac | stawidth | stadistinct | stakind1 | stakind2 | stakind3 | stakind4 | stakind5 | staop1 | staop2 | staop3 | staop4 | staop5 | stacoll1 | stacoll2 | stacoll3 | stacoll4 | stacoll5 | stanumbers1 | stanumbers2 | stanumbers3 | stanumbers4 | stanumbers5 | sv1 | sv2 | sv3 | sv4 | sv5 ------------+------------+-------------+----------+-------------+----------+----------+----------+----------+----------+--------+--------+--------+--------+--------+----------+----------+----------+----------+----------+-------------+-------------+-------------+-------------+-------------+-----+-----+-----+-----+----- -(0 rows) + staattnum | stainherit | stanullfrac | stawidth | stadistinct | stakind1 | stakind2 | stakind3 | stakind4 | stakind5 | staop1 | staop2 | staop3 | staop4 | staop5 | stacoll1 | stacoll2 | stacoll3 | stacoll4 | stacoll5 | stanumbers1 | stanumbers2 | stanumbers3 | stanumbers4 | stanumbers5 | sv1 | sv2 | sv3 | sv4 | sv5 +-----------+------------+-------------+----------+-------------+----------+----------+----------+----------+----------+--------+--------+--------+--------+--------+----------+----------+----------+----------+----------+-------------+-------------+--------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------+-----+--------------------------------------------------+-----+----- + 1 | f | 0 | 4 | -1 | 2 | 3 | 0 | 0 | 0 | 97 | 97 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | {1} | | | | {1,2,3,4} | | | | + 4 | f | 0.25 | 45 | -0.75 | 2 | 3 | 4 | 5 | 0 | 1072 | 1072 | 98 | 98 | 0 | 100 | 100 | 100 | 100 | 0 | | {-1} | {0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0} | {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2.3333333} | | {"{\"\\\"orange\\\"\",purple,cyan}","{blue,yellow}","{red,green}"} | | {"\"orange\"",blue,cyan,green,purple,red,yellow} | | + 3 | f | 0.25 | 61 | -0.75 | 2 | 3 | 0 | 0 | 0 | 2990 | 2990 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | {1} | | | | {"(1,1.1,ONE,01-01-2001,\"{\"\"xkey\"\": \"\"xval\"\"}\")","(2,2.2,TWO,02-02-2002,\"[true, 4, \"\"six\"\"]\")","(3,3.3,TRE,03-03-2003,)"} | | | | + 2 | f | 0 | 4 | -1 | 2 | 3 | 0 | 0 | 0 | 664 | 664 | 0 | 0 | 0 | 100 | 100 | 0 | 0 | 0 | | {-0.4} | | | | {four,one,tre,two} | | | | + 1 | f | 0.25 | 1 | -0.5 | 1 | 3 | 0 | 0 | 0 | 91 | 58 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | {0.5} | {0.5} | | | | {t} | | | | +(5 rows) -- This should return 0 rows SELECT staattnum, stainherit, stanullfrac, stawidth, stadistinct, @@ -726,8 +719,8 @@ ORDER BY relname; relname | reltuples ---------+----------- - is_odd | 4 - test | 4 + is_odd | 0 + test | -1 (2 rows) -- This should return 0 rows @@ -760,9 +753,10 @@ JOIN pg_statistic_ext_data AS d ON d.stxoid = e.oid WHERE e.stxrelid = 'stats_export_import.test'::regclass AND e.stxname = 'evens_test'; - stxdinherit | stxdndistinct | stxddependencies | stxdmcv | stxdexpr --------------+---------------+------------------+---------+---------- -(0 rows) + stxdinherit | stxdndistinct | stxddependencies | stxdmcv | stxdexpr +-------------+---------------+--------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------- + f | {"2, -1": 4} | {"2 => -1": 1.000000, "-1 => 2": 0.500000} | \xc251a6e1010000000400000002001900000010000000040000001d00000020000000ffffffff00000000020000000200000000000000010000000100000004000000666f7572030000006f6e65030000007472650300000074776f00010001000000000000d03f000000000000b03f000000000000000000000000d03f000000000000c03f010000000000000000000000d03f000000000000c03f020000000000000000000000d03f000000000000b03f03000100 | {"(0,0,f,0.25,1,-0.5,1,3,0,0,0,91,58,0,0,0,0,0,0,0,0,{0.5},{0.5},,,,{f},,,,)"} +(1 row) SELECT staattnum, stainherit, stanullfrac, stawidth, stadistinct, stakind1, stakind2, stakind3, stakind4, stakind5, === EOF === [05:12:23.925](57.212s) not ok 5 - regression tests pass [05:12:23.925](0.000s) # Failed test 'regression tests pass' # at /tmp/cirrus-ci-build/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 212. [05:12:23.925](0.000s) # got: '256' # expected: '0' # Checking port 64498 # Found port 64498 Name: new_node Data directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/archives Connection string: port=64498 host=/tmp/0htOuYT_ZX Log file: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_new_node.log [05:12:23.931](0.006s) # initializing database system by running initdb # Running: initdb -D /tmp/cirrus-ci-build/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 "postgres". This user must also own the server process. The database cluster will be initialized with this locale configuration: 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 text search configuration will be set to "english". Data page checksums are disabled. creating directory /tmp/cirrus-ci-build/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 ... 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_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_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_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata # Running: pg_dumpall --no-sync -d port=64497 host=/tmp/0htOuYT_ZX dbname='postgres' -f /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_9O5v/dump1.sql [05:12:28.843](4.912s) ok 6 - dump before running pg_upgrade ### Stopping node "old_node" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/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 /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/does/not/exist/ -B /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin -s /tmp/0htOuYT_ZX -p 64497 -P 64498 --copy --check check for "/tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/does/not/exist" failed: No such file or directory Failure, exiting [05:12:29.076](0.234s) ok 7 - run of pg_upgrade --check for new instance with incorrect binary path [05:12:29.076](0.000s) ok 8 - pg_upgrade_output.d/ not removed after pg_upgrade failure # Running: pg_upgrade --no-sync -d /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin -B /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin -s /tmp/0htOuYT_ZX -p 64497 -P 64498 --copy --check [05:12:30.138](1.061s) ok 9 - invalid database causes failure status (got 1 vs expected 1) [05:12:30.138](0.000s) ok 10 - invalid database causes failure stdout /(?^:invalid)/ [05:12:30.138](0.000s) ok 11 - invalid database causes failure stderr /(?^:)/ ### Starting node "old_node" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l /tmp/cirrus-ci-build/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 35682 ### Stopping node "old_node" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/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 /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin -B /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin -s /tmp/0htOuYT_ZX -p 64497 -P 64498 --copy --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 system-defined composite types in user tables ok Checking for reg* data types in user tables ok Checking for contrib/isn with bigint-passing mismatch ok Checking for valid logical replication slots ok Checking for subscription state 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* [05:12:33.113](2.975s) ok 12 - run of pg_upgrade --check for new instance [05:12:33.113](0.000s) ok 13 - pg_upgrade_output.d/ removed after pg_upgrade --check success # Running: pg_upgrade --no-sync -d /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin -B /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin -s /tmp/0htOuYT_ZX -p 64497 -P 64498 --copy 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 system-defined composite types in user tables ok Checking for reg* data types in user tables ok Checking for contrib/isn with bigint-passing mismatch ok Checking for valid logical replication slots ok Checking for subscription state 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 Copying 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: /tmp/cirrus-ci-build/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 [05:12:49.791](16.678s) ok 14 - run of pg_upgrade for new instance [05:12:49.791](0.000s) ok 15 - pg_upgrade_output.d/ removed after pg_upgrade success ### Starting node "new_node" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -l /tmp/cirrus-ci-build/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 39628 [05:12:49.955](0.164s) ok 16 - check that locales in new cluster match original cluster # Running: pg_dumpall --no-sync -d port=64498 host=/tmp/0htOuYT_ZX dbname='postgres' -f /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_9O5v/dump2.sql [05:12:53.102](3.147s) ok 17 - dump after running pg_upgrade [05:12:53.217](0.116s) ok 18 - old and new dumps match after pg_upgrade [05:12:53.217](0.000s) 1..18 ### Stopping node "new_node" using mode immediate # Running: pg_ctl -D /tmp/cirrus-ci-build/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" [05:12:53.330](0.112s) # Looks like you failed 1 test of 18.