[16:11:28.431](0.021s) # testing using transfer mode --copy # Checking port 65009 # Found port 65009 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=65009 host=/tmp/uRy3FWhLZ9 Log file: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log [16:11:28.449](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 60857 [16:11:30.542](2.093s) ok 1 - check locales in original cluster # Running: createdb regression\"\  !"#$%&'()*+,-\\"\\\ [16:11:30.710](0.168s) ok 2 - created database with ASCII characters from 1 to 45 # Running: createdb regression./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ [16:11:30.872](0.163s) ok 3 - created database with ASCII characters from 46 to 90 # Running: createdb regression[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ [16:11:30.954](0.082s) ok 4 - created database with ASCII characters from 91 to 127 [16:11:30.955](0.001s) # running regression tests in old instance # using postmaster on /tmp/uRy3FWhLZ9, port 65009 ok 1 - test_setup 770 ms # parallel group (20 tests): varchar char pg_lsn txid text oid int4 uuid regproc int2 money name float4 int8 boolean float8 enum bit rangetypes numeric ok 2 + boolean 214 ms ok 3 + char 103 ms ok 4 + name 182 ms ok 5 + varchar 92 ms ok 6 + text 131 ms ok 7 + int2 170 ms ok 8 + int4 157 ms ok 9 + int8 202 ms ok 10 + oid 148 ms ok 11 + float4 196 ms ok 12 + float8 213 ms ok 13 + bit 276 ms ok 14 + numeric 1033 ms ok 15 + txid 126 ms ok 16 + uuid 157 ms ok 17 + enum 216 ms ok 18 + money 175 ms ok 19 + rangetypes 949 ms ok 20 + pg_lsn 102 ms ok 21 + regproc 162 ms # parallel group (20 tests): lseg circle md5 line path macaddr macaddr8 timetz numerology time point inet date interval timestamp strings timestamptz polygon box multirangetypes ok 22 + strings 578 ms ok 23 + md5 86 ms ok 24 + numerology 147 ms ok 25 + point 165 ms ok 26 + lseg 55 ms ok 27 + line 107 ms ok 28 + box 944 ms ok 29 + path 118 ms ok 30 + polygon 850 ms ok 31 + circle 74 ms ok 32 + date 286 ms ok 33 + time 148 ms ok 34 + timetz 143 ms ok 35 + timestamp 569 ms ok 36 + timestamptz 664 ms ok 37 + interval 354 ms ok 38 + inet 278 ms ok 39 + macaddr 136 ms ok 40 + macaddr8 139 ms ok 41 + multirangetypes 996 ms # parallel group (12 tests): comments unicode misc_sanity xid tstypes expressions horology mvcc geometry type_sanity regex opr_sanity ok 42 + geometry 300 ms ok 43 + horology 259 ms ok 44 + tstypes 207 ms ok 45 + regex 676 ms ok 46 + type_sanity 367 ms ok 47 + opr_sanity 916 ms ok 48 + misc_sanity 109 ms ok 49 + comments 73 ms ok 50 + expressions 229 ms ok 51 + unicode 87 ms ok 52 + xid 110 ms ok 53 + mvcc 271 ms # parallel group (5 tests): copydml copyselect copy insert_conflict insert ok 54 + copy 346 ms ok 55 + copyselect 103 ms ok 56 + copydml 58 ms ok 57 + insert 1285 ms ok 58 + insert_conflict 428 ms # parallel group (7 tests): create_operator create_function_c create_type create_schema create_procedure create_misc create_table ok 59 + create_function_c 61 ms ok 60 + create_misc 257 ms ok 61 + create_operator 37 ms ok 62 + create_procedure 224 ms ok 63 + create_table 1172 ms ok 64 + create_type 201 ms ok 65 + create_schema 211 ms # parallel group (5 tests): index_including index_including_gist create_view create_index_spgist create_index not ok 66 + create_index 2115 ms ok 67 + create_index_spgist 1582 ms ok 68 + create_view 1225 ms ok 69 + index_including 592 ms ok 70 + index_including_gist 1143 ms # parallel group (16 tests): create_cast errors hash_func roleattributes create_aggregate drop_if_exists select typed_table create_function_sql create_am infinite_recurse vacuum constraints updatable_views inherit triggers ok 71 + create_aggregate 221 ms ok 72 + create_function_sql 450 ms ok 73 + create_cast 76 ms ok 74 + constraints 1348 ms ok 75 + triggers 3967 ms ok 76 + select 264 ms ok 77 + inherit 2950 ms ok 78 + typed_table 374 ms ok 79 + vacuum 1093 ms ok 80 + drop_if_exists 225 ms ok 81 + updatable_views 1945 ms ok 82 + roleattributes 178 ms ok 83 + create_am 532 ms ok 84 + hash_func 155 ms ok 85 + errors 83 ms ok 86 + infinite_recurse 860 ms ok 87 - sanity_check 99 ms # parallel group (20 tests): select_distinct_on delete select_having select_implicit case namespace select_into prepared_xacts random transactions portals select_distinct subselect union arrays update hash_index aggregates join btree_index ok 88 + select_into 280 ms not ok 89 + select_distinct 465 ms ok 90 + select_distinct_on 98 ms ok 91 + select_implicit 142 ms ok 92 + select_having 106 ms not ok 93 + subselect 609 ms not ok 94 + union 671 ms ok 95 + case 185 ms not ok 96 + join 1713 ms not ok 97 + aggregates 1662 ms ok 98 + transactions 400 ms ok 99 + random 315 ms ok 100 + portals 432 ms ok 101 + arrays 743 ms ok 102 + btree_index 4827 ms ok 103 + hash_index 1431 ms ok 104 + update 1028 ms ok 105 + delete 100 ms ok 106 + namespace 197 ms ok 107 + prepared_xacts 282 ms # parallel group (20 tests): init_privs drop_operator security_label lock password tablesample object_address collate replica_identity groupingsets matview identity rowsecurity spgist generated gin gist brin join_hash privileges ok 108 + brin 4055 ms ok 109 + gin 2929 ms ok 110 + gist 3080 ms ok 111 + spgist 2387 ms ok 112 + privileges 5075 ms ok 113 + init_privs 83 ms ok 114 + security_label 189 ms ok 115 + collate 731 ms ok 116 + matview 1634 ms ok 117 + lock 327 ms ok 118 + replica_identity 997 ms ok 119 + rowsecurity 2361 ms ok 120 + object_address 475 ms ok 121 + tablesample 382 ms ok 122 + groupingsets 1172 ms ok 123 + drop_operator 96 ms ok 124 + password 335 ms ok 125 + identity 1664 ms ok 126 + generated 2452 ms ok 127 + join_hash 4146 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 156 ms ok 129 + brin_multi 1732 ms # parallel group (18 tests): async dbsize collate.utf8 tidrangescan tsrf tid alter_operator tidscan create_role sysviews misc_functions incremental_sort alter_generic misc merge collate.icu.utf8 create_table_like without_overlaps ok 130 + create_table_like 958 ms ok 131 + alter_generic 430 ms ok 132 + alter_operator 199 ms ok 133 + misc 493 ms ok 134 + async 82 ms ok 135 + dbsize 86 ms ok 136 + merge 886 ms ok 137 + misc_functions 413 ms ok 138 + sysviews 309 ms ok 139 + tsrf 193 ms ok 140 + tid 194 ms ok 141 + tidscan 252 ms ok 142 + tidrangescan 168 ms ok 143 + collate.utf8 126 ms ok 144 + collate.icu.utf8 900 ms ok 145 + incremental_sort 426 ms ok 146 + create_role 273 ms ok 147 + without_overlaps 1231 ms # parallel group (7 tests): collate.linux.utf8 collate.windows.win1252 amutils psql_crosstab rules psql stats_ext ok 148 + rules 768 ms ok 149 + psql 1083 ms ok 150 + psql_crosstab 76 ms ok 151 + amutils 44 ms ok 152 + stats_ext 2984 ms ok 153 + collate.linux.utf8 31 ms ok 154 + collate.windows.win1252 39 ms not ok 155 - select_parallel 3102 ms ok 156 - write_parallel 324 ms ok 157 - vacuum_parallel 514 ms # parallel group (2 tests): subscription publication ok 158 + publication 1029 ms ok 159 + subscription 132 ms # parallel group (17 tests): advisory_lock portals_p2 combocid xmlmap tsdicts functional_deps dependency guc equivclass select_views window cluster bitmapops tsearch indirect_toast foreign_data foreign_key ok 160 + select_views 670 ms ok 161 + portals_p2 167 ms ok 162 + foreign_key 4271 ms ok 163 + cluster 1361 ms ok 164 + dependency 346 ms ok 165 + guc 354 ms ok 166 + bitmapops 1369 ms ok 167 + combocid 193 ms ok 168 + tsearch 1433 ms ok 169 + tsdicts 278 ms ok 170 + foreign_data 2661 ms not ok 171 + window 1359 ms ok 172 + xmlmap 273 ms ok 173 + functional_deps 314 ms ok 174 + advisory_lock 159 ms ok 175 + indirect_toast 1581 ms ok 176 + equivclass 363 ms # parallel group (8 tests): jsonpath_encoding json_encoding jsonpath sqljson sqljson_queryfuncs json jsonb_jsonpath jsonb ok 177 + json 446 ms ok 178 + jsonb 1225 ms ok 179 + json_encoding 91 ms ok 180 + jsonpath 167 ms ok 181 + jsonpath_encoding 78 ms ok 182 + jsonb_jsonpath 587 ms ok 183 + sqljson 317 ms ok 184 + sqljson_queryfuncs 419 ms # parallel group (18 tests): prepare returning limit plancache conversion temp copy2 sequence polymorphism with largeobject rowtypes truncate rangefuncs domain xml plpgsql alter_table ok 185 + plancache 561 ms ok 186 + limit 457 ms ok 187 + plpgsql 6077 ms ok 188 + copy2 931 ms ok 189 + temp 860 ms ok 190 + domain 1844 ms ok 191 + rangefuncs 1336 ms ok 192 + prepare 114 ms ok 193 + conversion 688 ms ok 194 + truncate 1269 ms ok 195 + alter_table 7101 ms ok 196 + sequence 949 ms ok 197 + polymorphism 1098 ms not ok 198 + rowtypes 1184 ms ok 199 + returning 324 ms ok 200 + largeobject 1175 ms not ok 201 + with 1125 ms ok 202 + xml 4207 ms # parallel group (13 tests): predicate hash_part reloptions explain partition_info memoize compression stats partition_aggregate partition_prune tuplesort partition_join indexing ok 203 + partition_join 4125 ms ok 204 + partition_prune 4055 ms ok 205 + reloptions 200 ms ok 206 + hash_part 114 ms ok 207 + indexing 4196 ms ok 208 + partition_aggregate 2610 ms ok 209 + partition_info 314 ms ok 210 + tuplesort 4088 ms ok 211 + explain 238 ms ok 212 + compression 772 ms ok 213 + memoize 565 ms ok 214 + stats 1347 ms ok 215 + predicate 88 ms # parallel group (2 tests): oidjoins event_trigger ok 216 + oidjoins 757 ms ok 217 + event_trigger 831 ms ok 218 - event_trigger_login 98 ms ok 219 - fast_default 292 ms ok 220 - tablespace 608 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-02 16:05:03.738301881 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/create_index.out 2024-04-02 16:11:40.002334521 +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-02 16:05:03.798301864 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/select_distinct.out 2024-04-02 16:11:44.622333888 +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-02 16:05:03.806301862 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/subselect.out 2024-04-02 16:11:44.766333869 +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-02 16:05:03.814301859 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/union.out 2024-04-02 16:11:44.830333860 +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-02 16:05:03.762301874 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/join.out 2024-04-02 16:11:45.870333717 +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-02 16:05:03.722301886 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/aggregates.out 2024-04-02 16:11:45.822333724 +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-02 16:05:03.798301864 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/select_parallel.out 2024-04-02 16:12:03.382331318 +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-02 16:05:03.818301858 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/window.out 2024-04-02 16:12:06.710330862 +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-02 16:05:03.794301865 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/rowtypes.out 2024-04-02 16:12:12.390330083 +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-02 16:05:03.818301858 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/results/with.out 2024-04-02 16:12:12.334330091 +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 === [16:12:24.805](53.851s) not ok 5 - regression tests pass [16:12:24.806](0.000s) # Failed test 'regression tests pass' # at /tmp/cirrus-ci-build/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 260. [16:12:24.806](0.000s) # got: '256' # expected: '0' # Checking port 65010 # Found port 65010 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=65010 host=/tmp/uRy3FWhLZ9 Log file: /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_new_node.log [16:12:24.818](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=65009 host=/tmp/uRy3FWhLZ9 dbname='postgres' -f /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_yzXg/dump1.sql [16:12:32.070](7.252s) 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/uRy3FWhLZ9 -p 65009 -P 65010 --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 [16:12:32.271](0.201s) ok 7 - run of pg_upgrade --check for new instance with incorrect binary path [16:12:32.271](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/uRy3FWhLZ9 -p 65009 -P 65010 --copy --check [16:12:33.337](1.066s) ok 9 - invalid database causes failure status (got 1 vs expected 1) [16:12:33.337](0.000s) ok 10 - invalid database causes failure stdout /(?^:invalid)/ [16:12:33.337](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 73321 ### 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/uRy3FWhLZ9 -p 65009 -P 65010 --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* [16:12:36.337](3.000s) ok 12 - run of pg_upgrade --check for new instance [16:12:36.337](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/uRy3FWhLZ9 -p 65009 -P 65010 --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 [16:12:58.024](21.687s) ok 14 - run of pg_upgrade for new instance [16:12:58.025](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 77358 [16:12:58.196](0.172s) ok 16 - check that locales in new cluster match original cluster # Running: pg_dumpall --no-sync -d port=65010 host=/tmp/uRy3FWhLZ9 dbname='postgres' -f /tmp/cirrus-ci-build/build-32/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_yzXg/dump2.sql [16:13:01.845](3.649s) ok 17 - dump after running pg_upgrade [16:13:01.940](0.094s) ok 18 - old and new dumps match after pg_upgrade [16:13:01.940](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" [16:13:02.046](0.106s) # Looks like you failed 1 test of 18.