[09:05:39.785](0.028s) # testing using transfer mode --copy # Checking port 64058 # Found port 64058 Name: old_node Data directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/archives Connection string: port=64058 host=/tmp/lGnv_dBUBV Log file: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log [09:05:39.801](0.016s) # initializing database system by running initdb # Running: initdb -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -A trust -N --wal-segsize 1 --allow-group-access --encoding UTF-8 --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.UTF-8 LC_NUMERIC: C.UTF-8 LC_TIME: C.UTF-8 The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Etc/UTC creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok Sync to disk skipped. The data directory might become corrupt if the operating system crashes. Success. You can now start the database server using: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l logfile start # Running: /tmp/cirrus-ci-build/build/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata ### Starting node "old_node" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_old_node_data/pgdata -l /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_old_node.log -o --cluster-name=old_node start waiting for server to start.... done server started # Postmaster PID for node "old_node" is 13828 [09:05:41.509](1.708s) ok 1 - check locales in original cluster # Running: createdb regression\"\  !"#$%&'()*+,-\\"\\\ [09:05:41.749](0.240s) ok 2 - created database with ASCII characters from 1 to 45 # Running: createdb regression./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ [09:05:42.102](0.353s) ok 3 - created database with ASCII characters from 46 to 90 # Running: createdb regression[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ [09:05:42.286](0.184s) ok 4 - created database with ASCII characters from 91 to 127 [09:05:42.287](0.001s) # running regression tests in old instance # using postmaster on /tmp/lGnv_dBUBV, port 64058 ok 1 - test_setup 490 ms # parallel group (20 tests): pg_lsn varchar text int4 oid txid char int2 name int8 money regproc float4 uuid float8 bit enum boolean numeric rangetypes ok 2 + boolean 403 ms ok 3 + char 142 ms ok 4 + name 158 ms ok 5 + varchar 97 ms ok 6 + text 124 ms ok 7 + int2 143 ms ok 8 + int4 130 ms ok 9 + int8 171 ms ok 10 + oid 131 ms ok 11 + float4 181 ms ok 12 + float8 243 ms ok 13 + bit 266 ms ok 14 + numeric 1001 ms ok 15 + txid 137 ms ok 16 + uuid 184 ms ok 17 + enum 293 ms ok 18 + money 169 ms ok 19 + rangetypes 1090 ms ok 20 + pg_lsn 89 ms ok 21 + regproc 173 ms # parallel group (20 tests): path circle time lseg line md5 macaddr8 timetz macaddr numerology inet date point interval strings timestamp timestamptz multirangetypes polygon box ok 22 + strings 490 ms ok 23 + md5 96 ms ok 24 + numerology 192 ms ok 25 + point 238 ms ok 26 + lseg 92 ms ok 27 + line 93 ms ok 28 + box 1123 ms ok 29 + path 61 ms ok 30 + polygon 944 ms ok 31 + circle 78 ms ok 32 + date 228 ms ok 33 + time 88 ms ok 34 + timetz 128 ms ok 35 + timestamp 505 ms ok 36 + timestamptz 600 ms ok 37 + interval 415 ms ok 38 + inet 199 ms ok 39 + macaddr 133 ms ok 40 + macaddr8 123 ms ok 41 + multirangetypes 863 ms # parallel group (12 tests): comments unicode misc_sanity xid tstypes expressions mvcc type_sanity geometry horology regex opr_sanity ok 42 + geometry 375 ms ok 43 + horology 478 ms ok 44 + tstypes 175 ms ok 45 + regex 757 ms ok 46 + type_sanity 353 ms ok 47 + opr_sanity 772 ms ok 48 + misc_sanity 96 ms ok 49 + comments 57 ms ok 50 + expressions 236 ms ok 51 + unicode 58 ms ok 52 + xid 125 ms ok 53 + mvcc 270 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 54 + copy 263 ms ok 55 + copyselect 88 ms ok 56 + copydml 112 ms ok 57 + insert 649 ms ok 58 + insert_conflict 349 ms # parallel group (7 tests): create_function_c create_operator create_misc create_schema create_type create_procedure create_table ok 59 + create_function_c 92 ms ok 60 + create_misc 216 ms ok 61 + create_operator 146 ms ok 62 + create_procedure 264 ms ok 63 + create_table 948 ms ok 64 + create_type 231 ms ok 65 + create_schema 218 ms # parallel group (5 tests): index_including index_including_gist create_view create_index_spgist create_index ok 66 + create_index 1938 ms ok 67 + create_index_spgist 1747 ms ok 68 + create_view 1013 ms ok 69 + index_including 593 ms ok 70 + index_including_gist 951 ms # parallel group (16 tests): errors create_cast roleattributes hash_func create_aggregate drop_if_exists create_am typed_table create_function_sql select infinite_recurse vacuum constraints updatable_views inherit triggers ok 71 + create_aggregate 131 ms ok 72 + create_function_sql 349 ms ok 73 + create_cast 85 ms ok 74 + constraints 960 ms ok 75 + triggers 3505 ms ok 76 + select 370 ms ok 77 + inherit 2514 ms ok 78 + typed_table 318 ms ok 79 + vacuum 914 ms ok 80 + drop_if_exists 143 ms ok 81 + updatable_views 1686 ms ok 82 + roleattributes 108 ms ok 83 + create_am 257 ms ok 84 + hash_func 122 ms ok 85 + errors 54 ms ok 86 + infinite_recurse 491 ms ok 87 - sanity_check 109 ms # parallel group (20 tests): select_distinct_on delete select_having select_implicit case namespace random select_into prepared_xacts transactions portals union select_distinct arrays subselect hash_index update aggregates join btree_index ok 88 + select_into 280 ms ok 89 + select_distinct 739 ms ok 90 + select_distinct_on 66 ms ok 91 + select_implicit 169 ms ok 92 + select_having 113 ms ok 93 + subselect 860 ms ok 94 + union 566 ms ok 95 + case 184 ms ok 96 + join 2769 ms ok 97 + aggregates 2633 ms ok 98 + transactions 402 ms ok 99 + random 249 ms ok 100 + portals 423 ms ok 101 + arrays 834 ms ok 102 + btree_index 3922 ms ok 103 + hash_index 1147 ms ok 104 + update 1147 ms ok 105 + delete 86 ms ok 106 + namespace 195 ms ok 107 + prepared_xacts 293 ms # parallel group (20 tests): init_privs security_label drop_operator lock tablesample object_address password replica_identity collate matview identity spgist generated rowsecurity groupingsets gin gist brin join_hash privileges ok 108 + brin 6602 ms ok 109 + gin 2630 ms ok 110 + gist 2861 ms ok 111 + spgist 2062 ms ok 112 + privileges 7005 ms ok 113 + init_privs 103 ms ok 114 + security_label 167 ms ok 115 + collate 1091 ms ok 116 + matview 1409 ms ok 117 + lock 279 ms ok 118 + replica_identity 717 ms ok 119 + rowsecurity 2170 ms ok 120 + object_address 332 ms ok 121 + tablesample 325 ms ok 122 + groupingsets 2179 ms ok 123 + drop_operator 200 ms ok 124 + password 335 ms ok 125 + identity 1572 ms ok 126 + generated 2161 ms ok 127 + join_hash 6610 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 472 ms ok 129 + brin_multi 1428 ms # parallel group (18 tests): dbsize async collate.utf8 tsrf tid alter_operator tidscan create_role tidrangescan sysviews alter_generic misc_functions incremental_sort create_table_like misc merge collate.icu.utf8 without_overlaps ok 130 + create_table_like 895 ms ok 131 + alter_generic 356 ms ok 132 + alter_operator 178 ms ok 133 + misc 1130 ms ok 134 + async 72 ms ok 135 + dbsize 67 ms ok 136 + merge 1156 ms ok 137 + misc_functions 413 ms ok 138 + sysviews 345 ms ok 139 + tsrf 142 ms ok 140 + tid 165 ms ok 141 + tidscan 192 ms ok 142 + tidrangescan 331 ms ok 143 + collate.utf8 98 ms ok 144 + collate.icu.utf8 1326 ms ok 145 + incremental_sort 825 ms ok 146 + create_role 244 ms ok 147 + without_overlaps 1516 ms # parallel group (7 tests): collate.linux.utf8 collate.windows.win1252 amutils psql_crosstab psql rules stats_ext ok 148 + rules 1338 ms ok 149 + psql 1062 ms ok 150 + psql_crosstab 77 ms ok 151 + amutils 74 ms ok 152 + stats_ext 4074 ms ok 153 + collate.linux.utf8 50 ms ok 154 + collate.windows.win1252 49 ms ok 155 - select_parallel 8426 ms ok 156 - write_parallel 237 ms ok 157 - vacuum_parallel 182 ms # parallel group (2 tests): subscription publication ok 158 + publication 4469 ms ok 159 + subscription 166 ms # parallel group (17 tests): portals_p2 advisory_lock combocid xmlmap tsdicts functional_deps equivclass dependency guc select_views window bitmapops cluster indirect_toast tsearch foreign_data foreign_key ok 160 + select_views 548 ms ok 161 + portals_p2 115 ms ok 162 + foreign_key 5923 ms ok 163 + cluster 1101 ms ok 164 + dependency 309 ms ok 165 + guc 319 ms ok 166 + bitmapops 1051 ms ok 167 + combocid 141 ms ok 168 + tsearch 1828 ms ok 169 + tsdicts 219 ms ok 170 + foreign_data 2597 ms ok 171 + window 944 ms ok 172 + xmlmap 194 ms ok 173 + functional_deps 234 ms ok 174 + advisory_lock 129 ms ok 175 + indirect_toast 1312 ms ok 176 + equivclass 268 ms # parallel group (9 tests): json_encoding jsonpath_encoding jsonpath sqljson_jsontable sqljson sqljson_queryfuncs json jsonb_jsonpath jsonb ok 177 + json 323 ms ok 178 + jsonb 660 ms ok 179 + json_encoding 41 ms ok 180 + jsonpath 122 ms ok 181 + jsonpath_encoding 42 ms ok 182 + jsonb_jsonpath 373 ms ok 183 + sqljson 224 ms ok 184 + sqljson_queryfuncs 269 ms ok 185 + sqljson_jsontable 212 ms # parallel group (18 tests): prepare returning plancache limit conversion temp sequence copy2 polymorphism rowtypes truncate largeobject with domain rangefuncs xml plpgsql alter_table ok 186 + plancache 371 ms ok 187 + limit 407 ms ok 188 + plpgsql 3286 ms ok 189 + copy2 645 ms ok 190 + temp 551 ms ok 191 + domain 1114 ms ok 192 + rangefuncs 1215 ms ok 193 + prepare 179 ms ok 194 + conversion 452 ms ok 195 + truncate 970 ms ok 196 + alter_table 4864 ms ok 197 + sequence 642 ms ok 198 + polymorphism 818 ms ok 199 + rowtypes 885 ms ok 200 + returning 251 ms ok 201 + largeobject 1024 ms ok 202 + with 1060 ms ok 203 + xml 2398 ms # parallel group (15 tests): hash_part reloptions explain predicate partition_info compression partition_merge memoize partition_split stats partition_aggregate tuplesort indexing partition_join partition_prune ok 204 + partition_merge 969 ms ok 205 + partition_split 1370 ms ok 206 + partition_join 2464 ms ok 207 + partition_prune 2697 ms ok 208 + reloptions 165 ms ok 209 + hash_part 145 ms ok 210 + indexing 2300 ms ok 211 + partition_aggregate 2197 ms ok 212 + partition_info 334 ms ok 213 + tuplesort 2244 ms ok 214 + explain 242 ms ok 215 + compression 785 ms ok 216 + memoize 1061 ms ok 217 + stats 1605 ms ok 218 + predicate 295 ms # parallel group (2 tests): oidjoins event_trigger ok 219 + oidjoins 757 ms ok 220 + event_trigger 1137 ms ok 221 - event_trigger_login 121 ms ok 222 - fast_default 374 ms not ok 223 - tablespace 1125 ms # (test process exited with exit code 2) 1..223 # 1 of 223 tests failed. # The differences that caused some tests to fail can be viewed in the file "/tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/regression.diffs". # A copy of the test summary that you see above is saved in the file "/tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/regression.out". === dumping /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/regression.diffs === diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/tablespace.out /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/results/tablespace.out --- /tmp/cirrus-ci-build/src/test/regress/expected/tablespace.out 2024-04-08 09:04:31.604470782 +0000 +++ /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/results/tablespace.out 2024-04-08 09:06:43.104408087 +0000 @@ -905,64 +905,10 @@ -- let's try moving a materialized view from one place to another CREATE MATERIALIZED VIEW testschema.amv AS SELECT * FROM testschema.atable; -ALTER MATERIALIZED VIEW testschema.amv SET TABLESPACE regress_tblspace; -REFRESH MATERIALIZED VIEW testschema.amv; -SELECT COUNT(*) FROM testschema.amv; - count -------- - 3 -(1 row) - --- Will fail with bad path -CREATE TABLESPACE regress_badspace LOCATION '/no/such/location'; -ERROR: directory "/no/such/location" does not exist --- No such tablespace -CREATE TABLE bar (i int) TABLESPACE regress_nosuchspace; -ERROR: tablespace "regress_nosuchspace" does not exist --- Fail, in use for some partitioned object -DROP TABLESPACE regress_tblspace; -ERROR: tablespace "regress_tblspace" cannot be dropped because some objects depend on it -DETAIL: tablespace for index testschema.part_a_idx -ALTER INDEX testschema.part_a_idx SET TABLESPACE pg_default; --- Fail, not empty -DROP TABLESPACE regress_tblspace; -ERROR: tablespace "regress_tblspace" is not empty -CREATE ROLE regress_tablespace_user1 login; -CREATE ROLE regress_tablespace_user2 login; -GRANT USAGE ON SCHEMA testschema TO regress_tablespace_user2; -ALTER TABLESPACE regress_tblspace OWNER TO regress_tablespace_user1; -CREATE TABLE testschema.tablespace_acl (c int); --- new owner lacks permission to create this index from scratch -CREATE INDEX k ON testschema.tablespace_acl (c) TABLESPACE regress_tblspace; -ALTER TABLE testschema.tablespace_acl OWNER TO regress_tablespace_user2; -SET SESSION ROLE regress_tablespace_user2; -CREATE TABLE tablespace_table (i int) TABLESPACE regress_tblspace; -- fail -ERROR: permission denied for tablespace regress_tblspace -ALTER TABLE testschema.tablespace_acl ALTER c TYPE bigint; -REINDEX (TABLESPACE regress_tblspace) TABLE tablespace_table; -- fail -ERROR: permission denied for tablespace regress_tblspace -REINDEX (TABLESPACE regress_tblspace, CONCURRENTLY) TABLE tablespace_table; -- fail -ERROR: permission denied for tablespace regress_tblspace -RESET ROLE; -ALTER TABLESPACE regress_tblspace RENAME TO regress_tblspace_renamed; -ALTER TABLE ALL IN TABLESPACE regress_tblspace_renamed SET TABLESPACE pg_default; -ALTER INDEX ALL IN TABLESPACE regress_tblspace_renamed SET TABLESPACE pg_default; -ALTER MATERIALIZED VIEW ALL IN TABLESPACE regress_tblspace_renamed SET TABLESPACE pg_default; --- Should show notice that nothing was done -ALTER TABLE ALL IN TABLESPACE regress_tblspace_renamed SET TABLESPACE pg_default; -NOTICE: no matching relations in tablespace "regress_tblspace_renamed" found -ALTER MATERIALIZED VIEW ALL IN TABLESPACE regress_tblspace_renamed SET TABLESPACE pg_default; -NOTICE: no matching relations in tablespace "regress_tblspace_renamed" found --- Should succeed -DROP TABLESPACE regress_tblspace_renamed; -DROP SCHEMA testschema CASCADE; -NOTICE: drop cascades to 7 other objects -DETAIL: drop cascades to table testschema.foo -drop cascades to table testschema.asselect -drop cascades to table testschema.asexecute -drop cascades to table testschema.part -drop cascades to table testschema.atable -drop cascades to materialized view testschema.amv -drop cascades to table testschema.tablespace_acl -DROP ROLE regress_tablespace_user1; -DROP ROLE regress_tablespace_user2; +WARNING: terminating connection because of crash of another server process +DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. +HINT: In a moment you should be able to reconnect to the database and repeat your command. +server closed the connection unexpectedly + This probably means the server terminated abnormally + before or while processing the request. +connection to server was lost === EOF === [09:06:43.151](60.864s) not ok 5 - regression tests pass [09:06:43.151](0.000s) # Failed test 'regression tests pass' # at /tmp/cirrus-ci-build/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 260. [09:06:43.151](0.000s) # got: '256' # expected: '0' # Checking port 64059 # Found port 64059 Name: new_node Data directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/archives Connection string: port=64059 host=/tmp/lGnv_dBUBV Log file: /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/log/002_pg_upgrade_new_node.log [09:06:43.158](0.007s) # initializing database system by running initdb # Running: initdb -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -A trust -N --wal-segsize 1 --allow-group-access --encoding SQL_ASCII --locale-provider libc The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with this locale configuration: locale provider: libc LC_COLLATE: C.UTF-8 LC_CTYPE: C.UTF-8 LC_MESSAGES: C LC_MONETARY: C.UTF-8 LC_NUMERIC: C.UTF-8 LC_TIME: C.UTF-8 The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Etc/UTC creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok Sync to disk skipped. The data directory might become corrupt if the operating system crashes. Success. You can now start the database server using: pg_ctl -D /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata -l logfile start # Running: /tmp/cirrus-ci-build/build/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/t_002_pg_upgrade_new_node_data/pgdata # Running: pg_dumpall --no-sync -d port=64058 host=/tmp/lGnv_dBUBV dbname='postgres' -f /tmp/cirrus-ci-build/build/testrun/pg_upgrade/002_pg_upgrade/data/tmp_test_K2Jx/dump1.sql pg_dumpall: error: connection to server on socket "/tmp/lGnv_dBUBV/.s.PGSQL.64058" failed: No such file or directory Is the server running locally and accepting connections on that socket? [09:06:44.466](1.309s) not ok 6 - dump before running pg_upgrade [09:06:44.467](0.000s) # Failed test 'dump before running pg_upgrade' # at /tmp/cirrus-ci-build/src/bin/pg_upgrade/t/002_pg_upgrade.pl line 322. connection error: 'psql: error: connection to server on socket "/tmp/lGnv_dBUBV/.s.PGSQL.64058" failed: No such file or directory Is the server running locally and accepting connections on that socket?' while running 'psql -XAtq -d port=64058 host=/tmp/lGnv_dBUBV dbname='postgres' -f - -v ON_ERROR_STOP=1' at /tmp/cirrus-ci-build/src/test/perl/PostgreSQL/Test/Cluster.pm line 2040. # No postmaster PID for node "old_node" # No postmaster PID for node "new_node" [09:06:44.475](0.008s) # Tests were run but no plan was declared and done_testing() was not seen. [09:06:44.475](0.000s) # Looks like your test exited with 4 just after 6.