[18:12:45.516](0.027s) # testing using transfer mode --copy # Checking port 52169 # Found port 52169 Name: old_node Data directory: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata Backup directory: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/backup Archive directory: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/archives Connection string: port=52169 host=/tmp/v7NxNawYZX Log file: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log [18:12:45.535](0.019s) # initializing database system by running initdb # Running: initdb -D /tmp/cirrus-ci-build/build-32/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 "postgres". 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: 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-32/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-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l logfile start # Running: /tmp/cirrus-ci-build/build-32/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build-32/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-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l /tmp/cirrus-ci-build/build-32/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 60720 [18:12:48.482](2.947s) ok 1 - check locales in original cluster # Running: createdb regression\"\  !"#$%&'()*+,-\\"\\\ [18:12:48.643](0.161s) ok 2 - created database with ASCII characters from 1 to 45 # Running: createdb regression./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ [18:12:48.973](0.330s) ok 3 - created database with ASCII characters from 46 to 90 # Running: createdb regression[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ [18:12:49.132](0.159s) ok 4 - created database with ASCII characters from 91 to 127 [18:12:49.133](0.001s) # running regression tests in old instance # using postmaster on /tmp/v7NxNawYZX, port 52169 ok 1 - test_setup 879 ms # parallel group (20 tests): oid pg_lsn txid int2 name varchar text char int4 regproc money boolean uuid float4 int8 float8 bit enum rangetypes numeric ok 2 + boolean 291 ms ok 3 + char 231 ms ok 4 + name 185 ms ok 5 + varchar 185 ms ok 6 + text 189 ms ok 7 + int2 173 ms ok 8 + int4 249 ms ok 9 + int8 349 ms ok 10 + oid 156 ms ok 11 + float4 300 ms ok 12 + float8 358 ms ok 13 + bit 407 ms ok 14 + numeric 1438 ms ok 15 + txid 170 ms ok 16 + uuid 290 ms ok 17 + enum 454 ms ok 18 + money 285 ms ok 19 + rangetypes 1260 ms ok 20 + pg_lsn 160 ms ok 21 + regproc 269 ms # parallel group (20 tests): timetz lseg path circle md5 time line macaddr macaddr8 point numerology date interval inet timestamp timestamptz strings box polygon multirangetypes ok 22 + strings 730 ms ok 23 + md5 153 ms ok 24 + numerology 253 ms ok 25 + point 231 ms ok 26 + lseg 133 ms ok 27 + line 170 ms ok 28 + box 885 ms ok 29 + path 140 ms ok 30 + polygon 968 ms ok 31 + circle 140 ms ok 32 + date 279 ms ok 33 + time 161 ms ok 34 + timetz 121 ms ok 35 + timestamp 600 ms ok 36 + timestamptz 649 ms ok 37 + interval 373 ms ok 38 + inet 402 ms ok 39 + macaddr 188 ms ok 40 + macaddr8 202 ms ok 41 + multirangetypes 1203 ms # parallel group (12 tests): unicode comments misc_sanity xid tstypes mvcc expressions geometry horology type_sanity regex opr_sanity ok 42 + geometry 447 ms ok 43 + horology 529 ms ok 44 + tstypes 270 ms ok 45 + regex 1452 ms ok 46 + type_sanity 622 ms ok 47 + opr_sanity 1740 ms ok 48 + misc_sanity 188 ms ok 49 + comments 157 ms ok 50 + expressions 332 ms ok 51 + unicode 106 ms ok 52 + xid 241 ms ok 53 + mvcc 284 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 54 + copy 361 ms ok 55 + copyselect 132 ms ok 56 + copydml 150 ms ok 57 + insert 1882 ms ok 58 + insert_conflict 597 ms # parallel group (7 tests): create_operator create_function_c create_type create_schema create_misc create_procedure create_table ok 59 + create_function_c 113 ms ok 60 + create_misc 286 ms ok 61 + create_operator 104 ms ok 62 + create_procedure 316 ms ok 63 + create_table 1500 ms ok 64 + create_type 189 ms ok 65 + create_schema 222 ms # parallel group (5 tests): index_including index_including_gist create_view create_index_spgist create_index not ok 66 + create_index 2517 ms ok 67 + create_index_spgist 1573 ms ok 68 + create_view 1161 ms ok 69 + index_including 632 ms ok 70 + index_including_gist 1033 ms # parallel group (16 tests): errors roleattributes create_cast hash_func drop_if_exists create_aggregate select typed_table create_am create_function_sql infinite_recurse vacuum constraints inherit updatable_views triggers ok 71 + create_aggregate 258 ms ok 72 + create_function_sql 612 ms ok 73 + create_cast 196 ms ok 74 + constraints 1661 ms ok 75 + triggers 9814 ms ok 76 + select 347 ms ok 77 + inherit 2858 ms ok 78 + typed_table 441 ms ok 79 + vacuum 1210 ms ok 80 + drop_if_exists 254 ms ok 81 + updatable_views 2966 ms ok 82 + roleattributes 174 ms ok 83 + create_am 593 ms ok 84 + hash_func 207 ms ok 85 + errors 102 ms ok 86 + infinite_recurse 641 ms ok 87 - sanity_check 304 ms # parallel group (20 tests): select_distinct_on delete select_having case select_implicit prepared_xacts namespace select_into random select_distinct transactions portals arrays union subselect update hash_index join aggregates btree_index ok 88 + select_into 465 ms not ok 89 + select_distinct 662 ms ok 90 + select_distinct_on 157 ms ok 91 + select_implicit 297 ms ok 92 + select_having 231 ms not ok 93 + subselect 1520 ms not ok 94 + union 1356 ms ok 95 + case 272 ms not ok 96 + join 2646 ms not ok 97 + aggregates 3078 ms ok 98 + transactions 784 ms ok 99 + random 572 ms ok 100 + portals 887 ms ok 101 + arrays 1268 ms ok 102 + btree_index 4929 ms ok 103 + hash_index 2341 ms ok 104 + update 1970 ms ok 105 + delete 211 ms ok 106 + namespace 419 ms ok 107 + prepared_xacts 408 ms # parallel group (20 tests): init_privs drop_operator security_label lock password tablesample object_address collate replica_identity groupingsets matview identity spgist gin rowsecurity gist generated join_hash brin privileges ok 108 + brin 6054 ms ok 109 + gin 3928 ms ok 110 + gist 4404 ms ok 111 + spgist 3040 ms ok 112 + privileges 7195 ms ok 113 + init_privs 102 ms ok 114 + security_label 277 ms ok 115 + collate 907 ms ok 116 + matview 2708 ms ok 117 + lock 398 ms ok 118 + replica_identity 1411 ms ok 119 + rowsecurity 4262 ms ok 120 + object_address 529 ms ok 121 + tablesample 515 ms ok 122 + groupingsets 1796 ms ok 123 + drop_operator 157 ms ok 124 + password 486 ms ok 125 + identity 2872 ms ok 126 + generated 4501 ms ok 127 + join_hash 6039 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 284 ms ok 129 + brin_multi 1773 ms # parallel group (18 tests): collate.utf8 async dbsize tid tidrangescan tsrf alter_operator create_role tidscan misc_functions sysviews alter_generic misc incremental_sort create_table_like collate.icu.utf8 merge without_overlaps ok 130 + create_table_like 1756 ms ok 131 + alter_generic 568 ms ok 132 + alter_operator 236 ms ok 133 + misc 683 ms ok 134 + async 88 ms ok 135 + dbsize 132 ms ok 136 + merge 1973 ms ok 137 + misc_functions 386 ms ok 138 + sysviews 432 ms ok 139 + tsrf 221 ms ok 140 + tid 162 ms ok 141 + tidscan 316 ms ok 142 + tidrangescan 193 ms ok 143 + collate.utf8 71 ms ok 144 + collate.icu.utf8 1871 ms ok 145 + incremental_sort 859 ms ok 146 + create_role 312 ms ok 147 + without_overlaps 2540 ms # parallel group (7 tests): collate.windows.win1252 collate.linux.utf8 amutils psql_crosstab psql rules stats_ext ok 148 + rules 3639 ms ok 149 + psql 1527 ms ok 150 + psql_crosstab 147 ms ok 151 + amutils 108 ms ok 152 + stats_ext 6598 ms ok 153 + collate.linux.utf8 45 ms ok 154 + collate.windows.win1252 43 ms not ok 155 - select_parallel 3271 ms ok 156 - write_parallel 625 ms ok 157 - vacuum_parallel 754 ms # parallel group (2 tests): subscription publication ok 158 + publication 1847 ms ok 159 + subscription 381 ms # parallel group (17 tests): portals_p2 advisory_lock combocid xmlmap tsdicts guc equivclass functional_deps dependency select_views indirect_toast bitmapops window cluster tsearch foreign_data foreign_key ok 160 + select_views 753 ms ok 161 + portals_p2 136 ms ok 162 + foreign_key 5644 ms ok 163 + cluster 1437 ms ok 164 + dependency 403 ms ok 165 + guc 317 ms ok 166 + bitmapops 1355 ms ok 167 + combocid 188 ms ok 168 + tsearch 1573 ms ok 169 + tsdicts 276 ms ok 170 + foreign_data 2639 ms not ok 171 + window 1407 ms ok 172 + xmlmap 213 ms ok 173 + functional_deps 361 ms ok 174 + advisory_lock 168 ms ok 175 + indirect_toast 1326 ms ok 176 + equivclass 354 ms # parallel group (8 tests): json_encoding jsonpath_encoding jsonpath sqljson sqljson_queryfuncs json jsonb_jsonpath jsonb ok 177 + json 689 ms ok 178 + jsonb 1723 ms ok 179 + json_encoding 98 ms ok 180 + jsonpath 203 ms ok 181 + jsonpath_encoding 108 ms ok 182 + jsonb_jsonpath 756 ms ok 183 + sqljson 381 ms ok 184 + sqljson_queryfuncs 539 ms # parallel group (18 tests): prepare returning plancache limit conversion temp copy2 sequence polymorphism largeobject truncate with rowtypes rangefuncs domain xml plpgsql alter_table ok 185 + plancache 524 ms ok 186 + limit 591 ms ok 187 + plpgsql 7246 ms ok 188 + copy2 945 ms ok 189 + temp 756 ms ok 190 + domain 1630 ms ok 191 + rangefuncs 1583 ms ok 192 + prepare 242 ms ok 193 + conversion 678 ms ok 194 + truncate 1327 ms ok 195 + alter_table 8295 ms ok 196 + sequence 1014 ms ok 197 + polymorphism 1031 ms not ok 198 + rowtypes 1417 ms ok 199 + returning 331 ms ok 200 + largeobject 1158 ms not ok 201 + with 1356 ms ok 202 + xml 2932 ms # parallel group (13 tests): predicate hash_part reloptions explain partition_info memoize compression stats partition_aggregate tuplesort partition_prune partition_join indexing ok 203 + partition_join 3796 ms ok 204 + partition_prune 3758 ms ok 205 + reloptions 177 ms ok 206 + hash_part 157 ms ok 207 + indexing 3899 ms ok 208 + partition_aggregate 2732 ms ok 209 + partition_info 346 ms ok 210 + tuplesort 3256 ms ok 211 + explain 309 ms ok 212 + compression 825 ms ok 213 + memoize 518 ms ok 214 + stats 1620 ms ok 215 + predicate 87 ms # parallel group (2 tests): oidjoins event_trigger ok 216 + oidjoins 1230 ms ok 217 + event_trigger 1319 ms ok 218 - event_trigger_login 76 ms ok 219 - fast_default 381 ms ok 220 - tablespace 1284 ms 1..220 # 10 of 220 tests failed. # The differences that caused some tests to fail can be viewed in the file "/tmp/cirrus-ci-build/build-32/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-32/testrun/pg_upgrade/002_pg_upgrade/data/regression.out". === dumping /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/regression.diffs === diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/create_index.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/create_index.out --- /tmp/cirrus-ci-build/src/test/regress/expected/create_index.out 2024-04-03 18:05:02.753546749 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/create_index.out 2024-04-03 18:13:01.609191240 +0000 @@ -1916,11 +1916,15 @@ SELECT unique1 FROM tenk1 WHERE unique1 IN (1,42,7) ORDER BY unique1; - QUERY PLAN -------------------------------------------------------- - Index Only Scan using tenk1_unique1 on tenk1 - Index Cond: (unique1 = ANY ('{1,42,7}'::integer[])) -(2 rows) + QUERY PLAN +------------------------------------------------------------------- + Sort + Sort Key: unique1 + -> Bitmap Heap Scan on tenk1 + Recheck Cond: (unique1 = ANY ('{1,42,7}'::integer[])) + -> Bitmap Index Scan on tenk1_unique1 + Index Cond: (unique1 = ANY ('{1,42,7}'::integer[])) +(6 rows) SELECT unique1 FROM tenk1 WHERE unique1 IN (1,42,7) @@ -1936,12 +1940,13 @@ SELECT thousand, tenthous FROM tenk1 WHERE thousand < 2 AND tenthous IN (1001,3000) ORDER BY thousand; - QUERY PLAN -------------------------------------------------------- - Index Only Scan using tenk1_thous_tenthous on tenk1 - Index Cond: (thousand < 2) - Filter: (tenthous = ANY ('{1001,3000}'::integer[])) -(3 rows) + QUERY PLAN +-------------------------------------------------------------------------------------- + Sort + Sort Key: thousand + -> Index Only Scan using tenk1_thous_tenthous on tenk1 + Index Cond: ((thousand < 2) AND (tenthous = ANY ('{1001,3000}'::integer[]))) +(4 rows) SELECT thousand, tenthous FROM tenk1 WHERE thousand < 2 AND tenthous IN (1001,3000) diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/select_distinct.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/select_distinct.out --- /tmp/cirrus-ci-build/src/test/regress/expected/select_distinct.out 2024-04-03 18:05:02.817546727 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/select_distinct.out 2024-04-03 18:13:12.825180953 +0000 @@ -262,12 +262,12 @@ -- Ensure we don't do parallel distinct with a parallel unsafe function EXPLAIN (COSTS OFF) SELECT DISTINCT distinct_func(1) FROM tenk1; - QUERY PLAN ----------------------------------------------------------- + QUERY PLAN +-------------------------------------- Unique -> Sort Sort Key: (distinct_func(1)) - -> Index Only Scan using tenk1_hundred on tenk1 + -> Seq Scan on tenk1 (4 rows) -- make the function parallel safe diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/subselect.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/subselect.out --- /tmp/cirrus-ci-build/src/test/regress/expected/subselect.out 2024-04-03 18:05:02.821546726 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/subselect.out 2024-04-03 18:13:13.685180164 +0000 @@ -1029,7 +1029,7 @@ -> Seq Scan on tenk1 t Filter: ((ANY (unique2 = (hashed SubPlan 2).col1)) OR (ten < 0)) SubPlan 2 - -> Index Only Scan using tenk1_unique1 on tenk1 k + -> Seq Scan on tenk1 k (5 rows) select count(*) from tenk1 t @@ -1403,7 +1403,7 @@ -> Seq Scan on public.tenk1 b Output: b.unique1, b.unique2, b.two, b.four, b.ten, b.twenty, b.hundred, b.thousand, b.twothousand, b.fivethous, b.tenthous, b.odd, b.even, b.stringu1, b.stringu2, b.string4 SubPlan 1 - -> Index Only Scan using tenk1_unique1 on public.tenk1 a + -> Seq Scan on public.tenk1 a Output: a.unique1 (10 rows) diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/union.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/union.out --- /tmp/cirrus-ci-build/src/test/regress/expected/union.out 2024-04-03 18:05:02.829546723 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/union.out 2024-04-03 18:13:13.521180315 +0000 @@ -350,13 +350,13 @@ explain (costs off) select count(*) from ( select unique1 from tenk1 union select fivethous from tenk1 ) ss; - QUERY PLAN ----------------------------------------------------------------- + QUERY PLAN +--------------------------------------------- Aggregate -> HashAggregate Group Key: tenk1.unique1 -> Append - -> Index Only Scan using tenk1_unique1 on tenk1 + -> Seq Scan on tenk1 -> Seq Scan on tenk1 tenk1_1 (6 rows) @@ -370,8 +370,8 @@ explain (costs off) select count(*) from ( select unique1 from tenk1 intersect select fivethous from tenk1 ) ss; - QUERY PLAN ------------------------------------------------------------------------------------- + QUERY PLAN +--------------------------------------------------------- Aggregate -> Subquery Scan on ss -> HashSetOp Intersect @@ -379,7 +379,7 @@ -> Subquery Scan on "*SELECT* 2" -> Seq Scan on tenk1 -> Subquery Scan on "*SELECT* 1" - -> Index Only Scan using tenk1_unique1 on tenk1 tenk1_1 + -> Seq Scan on tenk1 tenk1_1 (8 rows) select count(*) from @@ -391,14 +391,14 @@ explain (costs off) select unique1 from tenk1 except select unique2 from tenk1 where unique2 != 10; - QUERY PLAN ------------------------------------------------------------------------- + QUERY PLAN +--------------------------------------------- HashSetOp Except -> Append -> Subquery Scan on "*SELECT* 1" - -> Index Only Scan using tenk1_unique1 on tenk1 + -> Seq Scan on tenk1 -> Subquery Scan on "*SELECT* 2" - -> Index Only Scan using tenk1_unique2 on tenk1 tenk1_1 + -> Seq Scan on tenk1 tenk1_1 Filter: (unique2 <> 10) (7 rows) @@ -412,17 +412,19 @@ explain (costs off) select count(*) from ( select unique1 from tenk1 union select fivethous from tenk1 ) ss; - QUERY PLAN ----------------------------------------------------------------- + QUERY PLAN +--------------------------------------------------- Aggregate -> Unique -> Merge Append Sort Key: tenk1.unique1 - -> Index Only Scan using tenk1_unique1 on tenk1 + -> Sort + Sort Key: tenk1.unique1 + -> Seq Scan on tenk1 -> Sort Sort Key: tenk1_1.fivethous -> Seq Scan on tenk1 tenk1_1 -(8 rows) +(10 rows) select count(*) from ( select unique1 from tenk1 union select fivethous from tenk1 ) ss; @@ -434,8 +436,8 @@ explain (costs off) select count(*) from ( select unique1 from tenk1 intersect select fivethous from tenk1 ) ss; - QUERY PLAN ------------------------------------------------------------------------------------------- + QUERY PLAN +--------------------------------------------------------------- Aggregate -> Subquery Scan on ss -> SetOp Intersect @@ -445,7 +447,7 @@ -> Subquery Scan on "*SELECT* 2" -> Seq Scan on tenk1 -> Subquery Scan on "*SELECT* 1" - -> Index Only Scan using tenk1_unique1 on tenk1 tenk1_1 + -> Seq Scan on tenk1 tenk1_1 (10 rows) select count(*) from @@ -457,16 +459,16 @@ explain (costs off) select unique1 from tenk1 except select unique2 from tenk1 where unique2 != 10; - QUERY PLAN ------------------------------------------------------------------------------- + QUERY PLAN +--------------------------------------------------- SetOp Except -> Sort Sort Key: "*SELECT* 1".unique1 -> Append -> Subquery Scan on "*SELECT* 1" - -> Index Only Scan using tenk1_unique1 on tenk1 + -> Seq Scan on tenk1 -> Subquery Scan on "*SELECT* 2" - -> Index Only Scan using tenk1_unique2 on tenk1 tenk1_1 + -> Seq Scan on tenk1 tenk1_1 Filter: (unique2 <> 10) (9 rows) diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/join.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/join.out --- /tmp/cirrus-ci-build/src/test/regress/expected/join.out 2024-04-03 18:05:02.781546740 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/join.out 2024-04-03 18:13:14.801179140 +0000 @@ -2780,20 +2780,22 @@ from tenk1 x inner join tenk1 y on x.thousand = y.thousand group by x.thousand, x.twothousand order by x.thousand desc, x.twothousand; - QUERY PLAN ----------------------------------------------------------------------------------- + QUERY PLAN +----------------------------------------------------- GroupAggregate Group Key: x.thousand, x.twothousand -> Incremental Sort Sort Key: x.thousand DESC, x.twothousand Presorted Key: x.thousand -> Merge Join - Merge Cond: (y.thousand = x.thousand) - -> Index Only Scan Backward using tenk1_thous_tenthous on tenk1 y + Merge Cond: (x.thousand = y.thousand) -> Sort Sort Key: x.thousand DESC -> Seq Scan on tenk1 x -(11 rows) + -> Sort + Sort Key: y.thousand DESC + -> Seq Scan on tenk1 y +(13 rows) reset enable_hashagg; reset enable_nestloop; @@ -2934,12 +2936,12 @@ explain (costs off) select count(*) from tenk1 a, tenk1 b where a.hundred = b.thousand and (b.fivethous % 10) < 10; - QUERY PLAN ------------------------------------------------------------- + QUERY PLAN +----------------------------------------------------- Aggregate -> Hash Join Hash Cond: (a.hundred = b.thousand) - -> Index Only Scan using tenk1_hundred on tenk1 a + -> Seq Scan on tenk1 a -> Hash -> Seq Scan on tenk1 b Filter: ((fivethous % 10) < 10) @@ -3015,13 +3017,13 @@ explain (costs off) select a.* from tenk1 a where unique1 in (select unique2 from tenk1 b); - QUERY PLAN ------------------------------------------------------------- + QUERY PLAN +-------------------------------------- Hash Semi Join Hash Cond: (a.unique1 = b.unique2) -> Seq Scan on tenk1 a -> Hash - -> Index Only Scan using tenk1_unique2 on tenk1 b + -> Seq Scan on tenk1 b (5 rows) -- sadly, this is not an antijoin @@ -3033,43 +3035,43 @@ Seq Scan on tenk1 a Filter: (NOT (ANY (unique1 = (hashed SubPlan 1).col1))) SubPlan 1 - -> Index Only Scan using tenk1_unique2 on tenk1 b + -> Seq Scan on tenk1 b (4 rows) explain (costs off) select a.* from tenk1 a where exists (select 1 from tenk1 b where a.unique1 = b.unique2); - QUERY PLAN ------------------------------------------------------------- + QUERY PLAN +-------------------------------------- Hash Semi Join Hash Cond: (a.unique1 = b.unique2) -> Seq Scan on tenk1 a -> Hash - -> Index Only Scan using tenk1_unique2 on tenk1 b + -> Seq Scan on tenk1 b (5 rows) explain (costs off) select a.* from tenk1 a where not exists (select 1 from tenk1 b where a.unique1 = b.unique2); - QUERY PLAN ------------------------------------------------------------- + QUERY PLAN +-------------------------------------- Hash Anti Join Hash Cond: (a.unique1 = b.unique2) -> Seq Scan on tenk1 a -> Hash - -> Index Only Scan using tenk1_unique2 on tenk1 b + -> Seq Scan on tenk1 b (5 rows) explain (costs off) select a.* from tenk1 a left join tenk1 b on a.unique1 = b.unique2 where b.unique2 is null; - QUERY PLAN ------------------------------------------------------------- + QUERY PLAN +-------------------------------------- Hash Anti Join Hash Cond: (a.unique1 = b.unique2) -> Seq Scan on tenk1 a -> Hash - -> Index Only Scan using tenk1_unique2 on tenk1 b + -> Seq Scan on tenk1 b (5 rows) -- @@ -4029,11 +4031,11 @@ explain (costs off) select unique1, x from tenk1 left join f_immutable_int4(1) x on unique1 = x; - QUERY PLAN ----------------------------------------------------- + QUERY PLAN +------------------------------------ Nested Loop Left Join Join Filter: (tenk1.unique1 = 1) - -> Index Only Scan using tenk1_unique1 on tenk1 + -> Seq Scan on tenk1 -> Materialize -> Result (5 rows) @@ -4050,15 +4052,14 @@ explain (costs off) select unique1, x from tenk1 full join f_immutable_int4(1) x on unique1 = x; - QUERY PLAN ----------------------------------------------------- - Merge Full Join - Merge Cond: (tenk1.unique1 = (1)) - -> Index Only Scan using tenk1_unique1 on tenk1 - -> Sort - Sort Key: (1) + QUERY PLAN +------------------------------------ + Hash Full Join + Hash Cond: (tenk1.unique1 = (1)) + -> Seq Scan on tenk1 + -> Hash -> Result -(6 rows) +(5 rows) -- check that pullup of a const function allows further const-folding explain (costs off) @@ -4141,15 +4142,15 @@ select (t2.*).unique1, f_field_select(t2) from tenk1 t1 left join onek t2 on t1.unique1 = t2.unique1 left join int8_tbl t3 on true; - QUERY PLAN --------------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Nested Loop Left Join Output: t2.unique1, t2.unique2 -> Hash Left Join Output: t2.unique1, t2.unique2 Hash Cond: (t1.unique1 = t2.unique1) - -> Index Only Scan using tenk1_unique1 on public.tenk1 t1 - Output: t1.unique1 + -> Seq Scan on public.tenk1 t1 + Output: t1.unique1, t1.unique2, t1.two, t1.four, t1.ten, t1.twenty, t1.hundred, t1.thousand, t1.twothousand, t1.fivethous, t1.tenthous, t1.odd, t1.even, t1.stringu1, t1.stringu2, t1.string4 -> Hash Output: t2.unique1, t2.unique2 -> Seq Scan on public.onek t2 @@ -5288,7 +5289,7 @@ -> Seq Scan on int8_tbl c Filter: (q1 < b.unique1) -> Hash - -> Index Only Scan using onek_unique1 on onek a + -> Seq Scan on onek a (9 rows) select a.unique1, b.unique2 @@ -7412,14 +7413,15 @@ explain (costs off) select count(*) from tenk1 a, tenk1 b join lateral (values(a.unique1)) ss(x) on b.unique2 = ss.x; - QUERY PLAN ------------------------------------------------------------- + QUERY PLAN +-------------------------------------------- Aggregate - -> Merge Join - Merge Cond: (a.unique1 = b.unique2) - -> Index Only Scan using tenk1_unique1 on tenk1 a - -> Index Only Scan using tenk1_unique2 on tenk1 b -(5 rows) + -> Hash Join + Hash Cond: (a.unique1 = b.unique2) + -> Seq Scan on tenk1 a + -> Hash + -> Seq Scan on tenk1 b +(6 rows) select count(*) from tenk1 a, tenk1 b join lateral (values(a.unique1)) ss(x) on b.unique2 = ss.x; @@ -7437,7 +7439,7 @@ Aggregate -> Nested Loop -> Nested Loop - -> Index Only Scan using tenk1_unique1 on tenk1 a + -> Seq Scan on tenk1 a -> Values Scan on "*VALUES*" -> Memoize Cache Key: "*VALUES*".column1 @@ -8907,8 +8909,8 @@ where exists (select 1 from tenk1 t3 where t3.thousand = t1.unique1 and t3.tenthous = t2.hundred) and t1.unique1 < 1; - QUERY PLAN ---------------------------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Nested Loop Output: t1.unique1, t2.hundred -> Hash Join @@ -8917,8 +8919,8 @@ -> HashAggregate Output: t3.thousand, t3.tenthous Group Key: t3.thousand, t3.tenthous - -> Index Only Scan using tenk1_thous_tenthous on public.tenk1 t3 - Output: t3.thousand, t3.tenthous + -> Seq Scan on public.tenk1 t3 + Output: t3.unique1, t3.unique2, t3.two, t3.four, t3.ten, t3.twenty, t3.hundred, t3.thousand, t3.twothousand, t3.fivethous, t3.tenthous, t3.odd, t3.even, t3.stringu1, t3.stringu2, t3.string4 -> Hash Output: t1.unique1 -> Index Only Scan using onek_unique1 on public.onek t1 diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/aggregates.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/aggregates.out --- /tmp/cirrus-ci-build/src/test/regress/expected/aggregates.out 2024-04-03 18:05:02.741546754 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/aggregates.out 2024-04-03 18:13:15.237178740 +0000 @@ -2942,13 +2942,13 @@ SET LOCAL parallel_setup_cost=0; SET LOCAL max_parallel_workers_per_gather=4; EXPLAIN (COSTS OFF) SELECT balk(hundred) FROM tenk1; - QUERY PLAN -------------------------------------------------------------------------- + QUERY PLAN +---------------------------------------------- Finalize Aggregate -> Gather Workers Planned: 4 -> Partial Aggregate - -> Parallel Index Only Scan using tenk1_hundred on tenk1 + -> Parallel Seq Scan on tenk1 (5 rows) SELECT balk(hundred) FROM tenk1; diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/select_parallel.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/select_parallel.out --- /tmp/cirrus-ci-build/src/test/regress/expected/select_parallel.out 2024-04-03 18:05:02.817546727 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/select_parallel.out 2024-04-03 18:13:39.501153380 +0000 @@ -257,13 +257,13 @@ explain (costs off) select sum(sp_parallel_restricted(unique1)) from tenk1 group by(sp_parallel_restricted(unique1)); - QUERY PLAN -------------------------------------------------------------------- + QUERY PLAN +---------------------------------------------- HashAggregate Group Key: sp_parallel_restricted(unique1) -> Gather Workers Planned: 4 - -> Parallel Index Only Scan using tenk1_unique1 on tenk1 + -> Parallel Seq Scan on tenk1 (5 rows) -- test prepared statement @@ -608,17 +608,21 @@ set enable_nestloop to off; explain (costs off) select count(*) from tenk1, tenk2 where tenk1.unique1 = tenk2.unique1; - QUERY PLAN -------------------------------------------------------------------------------- + QUERY PLAN +----------------------------------------------------------------- Finalize Aggregate -> Gather Workers Planned: 4 -> Partial Aggregate -> Merge Join Merge Cond: (tenk1.unique1 = tenk2.unique1) - -> Parallel Index Only Scan using tenk1_unique1 on tenk1 - -> Index Only Scan using tenk2_unique1 on tenk2 -(8 rows) + -> Sort + Sort Key: tenk1.unique1 + -> Parallel Seq Scan on tenk1 + -> Sort + Sort Key: tenk2.unique1 + -> Seq Scan on tenk2 +(12 rows) select count(*) from tenk1, tenk2 where tenk1.unique1 = tenk2.unique1; count @@ -847,13 +851,13 @@ -- check parallelized int8 aggregate (bug #14897) explain (costs off) select avg(unique1::int8) from tenk1; - QUERY PLAN -------------------------------------------------------------------------- + QUERY PLAN +---------------------------------------------- Finalize Aggregate -> Gather Workers Planned: 4 -> Partial Aggregate - -> Parallel Index Only Scan using tenk1_unique1 on tenk1 + -> Parallel Seq Scan on tenk1 (5 rows) select avg(unique1::int8) from tenk1; @@ -1051,8 +1055,8 @@ explain (costs off, verbose) select count(*) from tenk1 a where (unique1, two) in (select unique1, row_number() over() from tenk1 b); - QUERY PLAN ----------------------------------------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------------------------------ Aggregate Output: count(*) -> Hash Semi Join @@ -1069,7 +1073,7 @@ -> Gather Output: b.unique1 Workers Planned: 4 - -> Parallel Index Only Scan using tenk1_unique1 on public.tenk1 b + -> Parallel Seq Scan on public.tenk1 b Output: b.unique1 (18 rows) @@ -1204,8 +1208,8 @@ SELECT unnest(ARRAY[]::integer[]) + 1 AS pathkey FROM tenk1 t1 JOIN tenk1 t2 ON TRUE ORDER BY pathkey; - QUERY PLAN ------------------------------------------------------------------------------------------------------ + QUERY PLAN +-------------------------------------------------------------------------- Sort Output: (((unnest('{}'::integer[])) + 1)) Sort Key: (((unnest('{}'::integer[])) + 1)) @@ -1216,11 +1220,11 @@ -> Nested Loop -> Gather Workers Planned: 4 - -> Parallel Index Only Scan using tenk1_hundred on public.tenk1 t1 + -> Parallel Seq Scan on public.tenk1 t1 -> Materialize -> Gather Workers Planned: 4 - -> Parallel Index Only Scan using tenk1_hundred on public.tenk1 t2 + -> Parallel Seq Scan on public.tenk1 t2 (15 rows) -- test passing expanded-value representations to workers @@ -1255,13 +1259,13 @@ EXPLAIN (COSTS OFF) SELECT 1 FROM tenk1_vw_sec WHERE (SELECT sum(f1) FROM int4_tbl WHERE f1 < unique1) < 100; - QUERY PLAN -------------------------------------------------------------------- + QUERY PLAN +----------------------------------------------------- Subquery Scan on tenk1_vw_sec Filter: ((SubPlan 1) < 100) -> Gather Workers Planned: 4 - -> Parallel Index Only Scan using tenk1_unique1 on tenk1 + -> Parallel Seq Scan on tenk1 SubPlan 1 -> Aggregate -> Seq Scan on int4_tbl diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/window.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/window.out --- /tmp/cirrus-ci-build/src/test/regress/expected/window.out 2024-04-03 18:05:02.833546721 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/window.out 2024-04-03 18:13:44.281146939 +0000 @@ -5285,13 +5285,13 @@ FROM tenk1 t1 INNER JOIN tenk1 t2 ON t1.unique1 = t2.tenthous WHERE t2.two = 1 LIMIT 1; - QUERY PLAN -------------------------------------------------------------------- + QUERY PLAN +----------------------------------------------------- Limit -> WindowAgg -> Hash Join Hash Cond: (t1.unique1 = t2.tenthous) - -> Index Only Scan using tenk1_unique1 on tenk1 t1 + -> Seq Scan on tenk1 t1 -> Hash -> Seq Scan on tenk1 t2 Filter: (two = 1) @@ -5303,17 +5303,18 @@ SELECT COUNT(*) OVER (ORDER BY t1.unique1 ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM tenk1 t1 INNER JOIN tenk1 t2 ON t1.unique1 = t2.tenthous LIMIT 1; - QUERY PLAN --------------------------------------------------------------------------------- + QUERY PLAN +----------------------------------------------------------- Limit -> WindowAgg - -> Merge Join - Merge Cond: (t1.unique1 = t2.tenthous) - -> Index Only Scan using tenk1_unique1 on tenk1 t1 - -> Sort - Sort Key: t2.tenthous - -> Index Only Scan using tenk1_thous_tenthous on tenk1 t2 -(8 rows) + -> Sort + Sort Key: t1.unique1 + -> Hash Join + Hash Cond: (t1.unique1 = t2.tenthous) + -> Seq Scan on tenk1 t1 + -> Hash + -> Seq Scan on tenk1 t2 +(9 rows) -- Ensure we get a cheap total plan. This time use 10000 FOLLOWING so we need -- to read all join rows. @@ -5321,17 +5322,18 @@ SELECT COUNT(*) OVER (ORDER BY t1.unique1 ROWS BETWEEN UNBOUNDED PRECEDING AND 10000 FOLLOWING) FROM tenk1 t1 INNER JOIN tenk1 t2 ON t1.unique1 = t2.tenthous LIMIT 1; - QUERY PLAN --------------------------------------------------------------------------------- + QUERY PLAN +----------------------------------------------------------- Limit -> WindowAgg - -> Merge Join - Merge Cond: (t1.unique1 = t2.tenthous) - -> Index Only Scan using tenk1_unique1 on tenk1 t1 - -> Sort - Sort Key: t2.tenthous - -> Index Only Scan using tenk1_thous_tenthous on tenk1 t2 -(8 rows) + -> Sort + Sort Key: t1.unique1 + -> Hash Join + Hash Cond: (t1.unique1 = t2.tenthous) + -> Seq Scan on tenk1 t1 + -> Hash + -> Seq Scan on tenk1 t2 +(9 rows) -- Tests for problems with failure to walk or mutate expressions -- within window frame clauses. diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/rowtypes.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/rowtypes.out --- /tmp/cirrus-ci-build/src/test/regress/expected/rowtypes.out 2024-04-03 18:05:02.813546728 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/rowtypes.out 2024-04-03 18:13:52.057136460 +0000 @@ -302,11 +302,15 @@ select thousand, tenthous from tenk1 where (thousand, tenthous) >= (997, 5000) order by thousand, tenthous; - QUERY PLAN ------------------------------------------------------------ - Index Only Scan using tenk1_thous_tenthous on tenk1 - Index Cond: (ROW(thousand, tenthous) >= ROW(997, 5000)) -(2 rows) + QUERY PLAN +----------------------------------------------------------------------- + Sort + Sort Key: thousand, tenthous + -> Bitmap Heap Scan on tenk1 + Recheck Cond: (ROW(thousand, tenthous) >= ROW(997, 5000)) + -> Bitmap Index Scan on tenk1_thous_tenthous + Index Cond: (ROW(thousand, tenthous) >= ROW(997, 5000)) +(6 rows) select thousand, tenthous from tenk1 where (thousand, tenthous) >= (997, 5000) @@ -380,11 +384,15 @@ select thousand, tenthous from tenk1 where (998, 5000) < (thousand, tenthous) order by thousand, tenthous; - QUERY PLAN ----------------------------------------------------------- - Index Only Scan using tenk1_thous_tenthous on tenk1 - Index Cond: (ROW(thousand, tenthous) > ROW(998, 5000)) -(2 rows) + QUERY PLAN +---------------------------------------------------------------------- + Sort + Sort Key: thousand, tenthous + -> Bitmap Heap Scan on tenk1 + Filter: (ROW(998, 5000) < ROW(thousand, tenthous)) + -> Bitmap Index Scan on tenk1_thous_tenthous + Index Cond: (ROW(thousand, tenthous) > ROW(998, 5000)) +(6 rows) select thousand, tenthous from tenk1 where (998, 5000) < (thousand, tenthous) @@ -1132,20 +1140,22 @@ select row_to_json(q) from (select thousand, tenthous from tenk1 where thousand = 42 and tenthous < 2000 offset 0) q; - QUERY PLAN -------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------------- Subquery Scan on q - -> Index Only Scan using tenk1_thous_tenthous on tenk1 - Index Cond: ((thousand = 42) AND (tenthous < 2000)) -(3 rows) + -> Bitmap Heap Scan on tenk1 + Recheck Cond: ((thousand = 42) AND (tenthous < 2000)) + -> Bitmap Index Scan on tenk1_thous_tenthous + Index Cond: ((thousand = 42) AND (tenthous < 2000)) +(5 rows) select row_to_json(q) from (select thousand, tenthous from tenk1 where thousand = 42 and tenthous < 2000 offset 0) q; row_to_json --------------------------------- - {"thousand":42,"tenthous":42} {"thousand":42,"tenthous":1042} + {"thousand":42,"tenthous":42} (2 rows) select row_to_json(q) from @@ -1153,8 +1163,8 @@ where thousand = 42 and tenthous < 2000 offset 0) q; row_to_json ------------------- - {"x":42,"y":42} {"x":42,"y":1042} + {"x":42,"y":42} (2 rows) select row_to_json(q) from @@ -1162,8 +1172,8 @@ where thousand = 42 and tenthous < 2000 offset 0) q(a,b); row_to_json ------------------- - {"a":42,"b":42} {"a":42,"b":1042} + {"a":42,"b":42} (2 rows) create temp table tt1 as select * from int8_tbl limit 2; diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/with.out /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/with.out --- /tmp/cirrus-ci-build/src/test/regress/expected/with.out 2024-04-03 18:05:02.837546720 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/with.out 2024-04-03 18:13:51.997136541 +0000 @@ -642,14 +642,14 @@ with x as materialized (select unique1 from tenk1 b) select count(*) from tenk1 a where unique1 in (select * from x); - QUERY PLAN ------------------------------------------------------------- + QUERY PLAN +-------------------------------------------- Aggregate CTE x - -> Index Only Scan using tenk1_unique1 on tenk1 b + -> Seq Scan on tenk1 b -> Hash Semi Join Hash Cond: (a.unique1 = x.unique1) - -> Index Only Scan using tenk1_unique1 on tenk1 a + -> Seq Scan on tenk1 a -> Hash -> CTE Scan on x (8 rows) @@ -678,16 +678,19 @@ with x as materialized (select unique1 from tenk1 b order by unique1) select count(*) from tenk1 a where unique1 in (select * from x); - QUERY PLAN ------------------------------------------------------------- + QUERY PLAN +-------------------------------------------- Aggregate CTE x - -> Index Only Scan using tenk1_unique1 on tenk1 b - -> Merge Semi Join - Merge Cond: (a.unique1 = x.unique1) - -> Index Only Scan using tenk1_unique1 on tenk1 a - -> CTE Scan on x -(7 rows) + -> Sort + Sort Key: b.unique1 + -> Seq Scan on tenk1 b + -> Hash Semi Join + Hash Cond: (a.unique1 = x.unique1) + -> Seq Scan on tenk1 a + -> Hash + -> CTE Scan on x +(10 rows) -- SEARCH clause create temp table graph0( f int, t int, label text ); === EOF === [18:14:06.096](76.963s) not ok 5 - regression tests pass [18:14:06.097](0.000s) # Failed test 'regression tests pass' # at /tmp/cirrus-ci-build/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 260. [18:14:06.097](0.000s) # got: '256' # expected: '0' # Checking port 52170 # Found port 52170 Name: new_node Data directory: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata Backup directory: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/backup Archive directory: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/archives Connection string: port=52170 host=/tmp/v7NxNawYZX Log file: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_new_node.log [18:14:06.114](0.017s) # initializing database system by running initdb # Running: initdb -D /tmp/cirrus-ci-build/build-32/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 locale "C". The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /tmp/cirrus-ci-build/build-32/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-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -l logfile start # Running: /tmp/cirrus-ci-build/build-32/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata # Running: pg_dumpall --no-sync -d port=52169 host=/tmp/v7NxNawYZX dbname='postgres' -f /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_rPmN/dump1.sql [18:14:12.088](5.974s) ok 6 - dump before running pg_upgrade ### Stopping node "old_node" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/build-32/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-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin/does/not/exist/ -B /tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin -s /tmp/v7NxNawYZX -p 52169 -P 52170 --copy --check check for "/tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin/does/not/exist" failed: No such file or directory Failure, exiting [18:14:12.355](0.266s) ok 7 - run of pg_upgrade --check for new instance with incorrect binary path [18:14:12.355](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-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin -B /tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin -s /tmp/v7NxNawYZX -p 52169 -P 52170 --copy --check [18:14:14.158](1.803s) ok 9 - invalid database causes failure status (got 1 vs expected 1) [18:14:14.158](0.000s) ok 10 - invalid database causes failure stdout /(?^:invalid)/ [18:14:14.159](0.000s) ok 11 - invalid database causes failure stderr /(?^:^$)/ ### Starting node "old_node" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l /tmp/cirrus-ci-build/build-32/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 74952 ### Stopping node "old_node" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/build-32/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-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin -B /tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin -s /tmp/v7NxNawYZX -p 52169 -P 52170 --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 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* [18:14:17.720](3.561s) ok 12 - run of pg_upgrade --check for new instance [18:14:17.720](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-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -D /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -b /tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin -B /tmp/cirrus-ci-build/build-32/tmp_install/usr/local/pgsql/bin -s /tmp/v7NxNawYZX -p 52169 -P 52170 --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 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 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-32/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 [18:14:40.907](23.187s) ok 14 - run of pg_upgrade for new instance [18:14:40.907](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-32/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -l /tmp/cirrus-ci-build/build-32/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 78776 [18:14:41.057](0.150s) ok 16 - check that locales in new cluster match original cluster # Running: pg_dumpall --no-sync -d port=52170 host=/tmp/v7NxNawYZX dbname='postgres' -f /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_rPmN/dump2.sql [18:14:46.211](5.154s) ok 17 - dump after running pg_upgrade [18:14:46.304](0.093s) ok 18 - old and new dumps match after pg_upgrade [18:14:46.305](0.000s) 1..18 ### Stopping node "new_node" using mode immediate # Running: pg_ctl -D /tmp/cirrus-ci-build/build-32/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" [18:14:46.410](0.106s) # Looks like you failed 1 test of 18.