[02:40:59.475](0.015s) # testing using transfer mode --copy # Checking port 56944 # Found port 56944 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=56944 host=/tmp/PLZ_fcZ7Z1 Log file: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log [02:40:59.488](0.012s) # 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 61309 [02:41:01.717](2.229s) ok 1 - check locales in original cluster # Running: createdb regression\"\  !"#$%&'()*+,-\\"\\\ [02:41:02.044](0.327s) ok 2 - created database with ASCII characters from 1 to 45 # Running: createdb regression./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ [02:41:02.362](0.318s) ok 3 - created database with ASCII characters from 46 to 90 # Running: createdb regression[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ [02:41:02.447](0.084s) ok 4 - created database with ASCII characters from 91 to 127 [02:41:02.447](0.001s) # running regression tests in old instance # using postmaster on /tmp/PLZ_fcZ7Z1, port 56944 ok 1 - test_setup 331 ms # parallel group (20 tests): varchar regproc int4 pg_lsn char oid txid name text float4 int2 boolean uuid money int8 bit float8 enum numeric rangetypes ok 2 + boolean 158 ms ok 3 + char 113 ms ok 4 + name 146 ms ok 5 + varchar 89 ms ok 6 + text 149 ms ok 7 + int2 157 ms ok 8 + int4 106 ms ok 9 + int8 199 ms ok 10 + oid 119 ms ok 11 + float4 153 ms ok 12 + float8 202 ms ok 13 + bit 201 ms ok 14 + numeric 1116 ms ok 15 + txid 138 ms ok 16 + uuid 175 ms ok 17 + enum 240 ms ok 18 + money 180 ms ok 19 + rangetypes 1156 ms ok 20 + pg_lsn 107 ms ok 21 + regproc 99 ms # parallel group (20 tests): md5 lseg timetz path circle line time macaddr numerology macaddr8 point date inet interval strings timestamp timestamptz multirangetypes box polygon ok 22 + strings 455 ms ok 23 + md5 54 ms ok 24 + numerology 158 ms ok 25 + point 182 ms ok 26 + lseg 73 ms ok 27 + line 131 ms ok 28 + box 770 ms ok 29 + path 118 ms ok 30 + polygon 820 ms ok 31 + circle 122 ms ok 32 + date 213 ms ok 33 + time 140 ms ok 34 + timetz 113 ms ok 35 + timestamp 499 ms ok 36 + timestamptz 536 ms ok 37 + interval 313 ms ok 38 + inet 245 ms ok 39 + macaddr 148 ms ok 40 + macaddr8 167 ms ok 41 + multirangetypes 715 ms # parallel group (12 tests): unicode comments misc_sanity xid tstypes mvcc expressions type_sanity horology geometry regex opr_sanity ok 42 + geometry 312 ms ok 43 + horology 285 ms ok 44 + tstypes 165 ms ok 45 + regex 538 ms ok 46 + type_sanity 255 ms ok 47 + opr_sanity 903 ms ok 48 + misc_sanity 74 ms ok 49 + comments 50 ms ok 50 + expressions 234 ms ok 51 + unicode 36 ms ok 52 + xid 155 ms ok 53 + mvcc 207 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 54 + copy 387 ms ok 55 + copyselect 106 ms ok 56 + copydml 117 ms ok 57 + insert 1148 ms ok 58 + insert_conflict 449 ms # parallel group (7 tests): create_function_c create_operator create_schema create_misc create_type create_procedure create_table ok 59 + create_function_c 30 ms ok 60 + create_misc 101 ms ok 61 + create_operator 90 ms ok 62 + create_procedure 192 ms ok 63 + create_table 1356 ms ok 64 + create_type 148 ms ok 65 + create_schema 95 ms # parallel group (5 tests): index_including index_including_gist create_view create_index_spgist create_index not ok 66 + create_index 2011 ms ok 67 + create_index_spgist 1436 ms ok 68 + create_view 1136 ms ok 69 + index_including 474 ms ok 70 + index_including_gist 720 ms # parallel group (16 tests): roleattributes create_cast errors drop_if_exists hash_func create_aggregate select infinite_recurse create_function_sql typed_table create_am vacuum constraints updatable_views inherit triggers ok 71 + create_aggregate 178 ms ok 72 + create_function_sql 483 ms ok 73 + create_cast 110 ms ok 74 + constraints 2022 ms ok 75 + triggers 3702 ms ok 76 + select 279 ms ok 77 + inherit 3144 ms ok 78 + typed_table 524 ms ok 79 + vacuum 1729 ms ok 80 + drop_if_exists 161 ms ok 81 + updatable_views 2622 ms ok 82 + roleattributes 107 ms ok 83 + create_am 602 ms ok 84 + hash_func 174 ms ok 85 + errors 116 ms ok 86 + infinite_recurse 447 ms ok 87 - sanity_check 105 ms # parallel group (20 tests): select_distinct_on select_having delete case select_implicit namespace select_into prepared_xacts random portals select_distinct transactions union arrays subselect update hash_index join aggregates btree_index ok 88 + select_into 220 ms not ok 89 + select_distinct 541 ms ok 90 + select_distinct_on 79 ms ok 91 + select_implicit 178 ms ok 92 + select_having 100 ms not ok 93 + subselect 1020 ms not ok 94 + union 847 ms ok 95 + case 150 ms not ok 96 + join 2519 ms not ok 97 + aggregates 2691 ms ok 98 + transactions 617 ms ok 99 + random 278 ms ok 100 + portals 385 ms ok 101 + arrays 854 ms ok 102 + btree_index 4656 ms ok 103 + hash_index 1542 ms ok 104 + update 1202 ms ok 105 + delete 116 ms ok 106 + namespace 184 ms ok 107 + prepared_xacts 276 ms # parallel group (20 tests): init_privs drop_operator security_label lock tablesample password object_address collate replica_identity groupingsets identity matview spgist generated rowsecurity gin gist brin join_hash privileges ok 108 + brin 4333 ms ok 109 + gin 2541 ms ok 110 + gist 3107 ms ok 111 + spgist 2178 ms ok 112 + privileges 4973 ms ok 113 + init_privs 76 ms ok 114 + security_label 135 ms ok 115 + collate 607 ms ok 116 + matview 1521 ms ok 117 + lock 294 ms ok 118 + replica_identity 802 ms ok 119 + rowsecurity 2409 ms ok 120 + object_address 364 ms ok 121 + tablesample 339 ms ok 122 + groupingsets 1236 ms ok 123 + drop_operator 92 ms ok 124 + password 341 ms ok 125 + identity 1460 ms ok 126 + generated 2345 ms ok 127 + join_hash 4349 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 246 ms ok 129 + brin_multi 1233 ms # parallel group (18 tests): async dbsize collate.utf8 tidscan tidrangescan tsrf tid alter_operator create_role misc_functions sysviews alter_generic misc incremental_sort merge collate.icu.utf8 create_table_like without_overlaps ok 130 + create_table_like 884 ms ok 131 + alter_generic 387 ms ok 132 + alter_operator 183 ms ok 133 + misc 475 ms ok 134 + async 56 ms ok 135 + dbsize 89 ms ok 136 + merge 825 ms ok 137 + misc_functions 292 ms ok 138 + sysviews 331 ms ok 139 + tsrf 156 ms ok 140 + tid 168 ms ok 141 + tidscan 138 ms ok 142 + tidrangescan 145 ms ok 143 + collate.utf8 102 ms ok 144 + collate.icu.utf8 861 ms ok 145 + incremental_sort 530 ms ok 146 + create_role 198 ms ok 147 + without_overlaps 1018 ms # parallel group (7 tests): collate.windows.win1252 collate.linux.utf8 amutils psql_crosstab rules psql stats_ext ok 148 + rules 811 ms ok 149 + psql 1097 ms ok 150 + psql_crosstab 45 ms ok 151 + amutils 43 ms ok 152 + stats_ext 3534 ms ok 153 + collate.linux.utf8 35 ms ok 154 + collate.windows.win1252 29 ms not ok 155 - select_parallel 2956 ms ok 156 - write_parallel 370 ms ok 157 - vacuum_parallel 256 ms # parallel group (2 tests): subscription publication ok 158 + publication 792 ms ok 159 + subscription 248 ms # parallel group (17 tests): portals_p2 xmlmap advisory_lock combocid tsdicts functional_deps guc dependency equivclass select_views window cluster bitmapops tsearch indirect_toast foreign_data foreign_key ok 160 + select_views 601 ms ok 161 + portals_p2 90 ms ok 162 + foreign_key 4726 ms ok 163 + cluster 1140 ms ok 164 + dependency 332 ms ok 165 + guc 321 ms ok 166 + bitmapops 1146 ms ok 167 + combocid 189 ms ok 168 + tsearch 1176 ms ok 169 + tsdicts 282 ms ok 170 + foreign_data 2646 ms not ok 171 + window 1034 ms ok 172 + xmlmap 115 ms ok 173 + functional_deps 294 ms ok 174 + advisory_lock 132 ms ok 175 + indirect_toast 1414 ms ok 176 + equivclass 359 ms # parallel group (8 tests): jsonpath_encoding json_encoding jsonpath sqljson sqljson_queryfuncs json jsonb_jsonpath jsonb ok 177 + json 305 ms ok 178 + jsonb 864 ms ok 179 + json_encoding 66 ms ok 180 + jsonpath 175 ms ok 181 + jsonpath_encoding 48 ms ok 182 + jsonb_jsonpath 326 ms ok 183 + sqljson 244 ms ok 184 + sqljson_queryfuncs 247 ms # parallel group (18 tests): prepare returning limit plancache conversion temp copy2 polymorphism sequence with largeobject truncate rangefuncs rowtypes domain xml plpgsql alter_table ok 185 + plancache 438 ms ok 186 + limit 370 ms ok 187 + plpgsql 4948 ms ok 188 + copy2 849 ms ok 189 + temp 734 ms ok 190 + domain 1716 ms ok 191 + rangefuncs 1534 ms ok 192 + prepare 186 ms ok 193 + conversion 468 ms ok 194 + truncate 1518 ms ok 195 + alter_table 7218 ms ok 196 + sequence 978 ms ok 197 + polymorphism 977 ms not ok 198 + rowtypes 1536 ms ok 199 + returning 225 ms ok 200 + largeobject 1338 ms not ok 201 + with 1328 ms ok 202 + xml 3331 ms # parallel group (13 tests): predicate hash_part reloptions explain partition_info memoize compression stats partition_aggregate partition_prune partition_join indexing tuplesort ok 203 + partition_join 3521 ms ok 204 + partition_prune 3466 ms ok 205 + reloptions 340 ms ok 206 + hash_part 212 ms ok 207 + indexing 3774 ms ok 208 + partition_aggregate 3205 ms ok 209 + partition_info 446 ms ok 210 + tuplesort 3781 ms ok 211 + explain 412 ms ok 212 + compression 1137 ms ok 213 + memoize 769 ms ok 214 + stats 1754 ms ok 215 + predicate 167 ms # parallel group (2 tests): oidjoins event_trigger ok 216 + oidjoins 605 ms ok 217 + event_trigger 642 ms ok 218 - event_trigger_login 61 ms ok 219 - fast_default 257 ms ok 220 - tablespace 1867 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 02:34:47.237264464 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/create_index.out 2024-04-03 02:41:10.740953751 +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 02:34:47.297264461 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/select_distinct.out 2024-04-03 02:41:15.128950342 +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 02:34:47.305264461 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/subselect.out 2024-04-03 02:41:15.604949973 +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 02:34:47.313264461 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/union.out 2024-04-03 02:41:15.432950106 +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 02:34:47.265264463 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/join.out 2024-04-03 02:41:17.100948810 +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 02:34:47.225264465 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/aggregates.out 2024-04-03 02:41:17.272948677 +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 02:34:47.297264461 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/select_parallel.out 2024-04-03 02:41:33.280936243 +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 02:34:47.317264461 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/window.out 2024-04-03 02:41:35.792934291 +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 02:34:47.297264461 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/rowtypes.out 2024-04-03 02:41:42.076929410 +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 02:34:47.317264461 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/with.out 2024-04-03 02:41:41.864929574 +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 === [02:41:54.732](52.285s) not ok 5 - regression tests pass [02:41:54.732](0.000s) # Failed test 'regression tests pass' # at /tmp/cirrus-ci-build/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 260. [02:41:54.733](0.000s) # got: '256' # expected: '0' # Checking port 56945 # Found port 56945 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=56945 host=/tmp/PLZ_fcZ7Z1 Log file: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_new_node.log [02:41:54.745](0.012s) # 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=56944 host=/tmp/PLZ_fcZ7Z1 dbname='postgres' -f /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_VcrM/dump1.sql [02:42:00.320](5.575s) 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/PLZ_fcZ7Z1 -p 56944 -P 56945 --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 [02:42:00.990](0.670s) ok 7 - run of pg_upgrade --check for new instance with incorrect binary path [02:42:00.990](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/PLZ_fcZ7Z1 -p 56944 -P 56945 --copy --check [02:42:01.855](0.865s) ok 9 - invalid database causes failure status (got 1 vs expected 1) [02:42:01.855](0.000s) ok 10 - invalid database causes failure stdout /(?^:invalid)/ [02:42:01.856](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 73816 ### 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/PLZ_fcZ7Z1 -p 56944 -P 56945 --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* [02:42:04.251](2.396s) ok 12 - run of pg_upgrade --check for new instance [02:42:04.252](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/PLZ_fcZ7Z1 -p 56944 -P 56945 --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 [02:42:22.922](18.671s) ok 14 - run of pg_upgrade for new instance [02:42:22.923](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 77341 [02:42:23.108](0.185s) ok 16 - check that locales in new cluster match original cluster # Running: pg_dumpall --no-sync -d port=56945 host=/tmp/PLZ_fcZ7Z1 dbname='postgres' -f /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_VcrM/dump2.sql [02:42:26.257](3.150s) ok 17 - dump after running pg_upgrade [02:42:26.393](0.135s) ok 18 - old and new dumps match after pg_upgrade [02:42:26.393](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" [02:42:26.511](0.118s) # Looks like you failed 1 test of 18.