# Checking port 55639 # Found port 55639 Name: primary Data directory: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata Backup directory: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/backup Archive directory: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/archives Connection string: port=55639 host=/tmp/rEaNw5MQFO Log file: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/log/027_stream_regress_primary.log [02:23:47.655](0.030s) # initializing database system by copying initdb template # Running: cp -RPp /tmp/cirrus-ci-build/build-32/tmp_install/initdb-template /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata # Running: /tmp/cirrus-ci-build/build-32/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata ### Starting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata -l /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/log/027_stream_regress_primary.log -o --cluster-name=primary start waiting for server to start.... done server started # Postmaster PID for node "primary" is 65729 (standby_1,) [02:23:47.949](0.294s) ok 1 - physical slot created on primary # Taking pg_basebackup my_backup from node "primary" # Running: pg_basebackup -D /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/backup/my_backup -h /tmp/rEaNw5MQFO -p 55639 --checkpoint fast --no-sync # Backup finished # Checking port 55640 # Found port 55640 Name: standby_1 Data directory: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/pgdata Backup directory: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/backup Archive directory: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/archives Connection string: port=55640 host=/tmp/rEaNw5MQFO Log file: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/log/027_stream_regress_standby_1.log # Initializing node "standby_1" from backup "my_backup" of node "primary" ### Enabling streaming replication for node "standby_1" ### Starting node "standby_1" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/pgdata -l /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/log/027_stream_regress_standby_1.log -o --cluster-name=standby_1 start waiting for server to start.... done server started # Postmaster PID for node "standby_1" is 65964 # using postmaster on /tmp/rEaNw5MQFO, port 55639 ok 1 - test_setup 513 ms # parallel group (20 tests): oid pg_lsn varchar char txid name int2 text money int4 regproc uuid float4 boolean int8 float8 bit enum numeric rangetypes ok 2 + boolean 221 ms ok 3 + char 144 ms ok 4 + name 161 ms ok 5 + varchar 136 ms ok 6 + text 164 ms ok 7 + int2 162 ms ok 8 + int4 192 ms ok 9 + int8 231 ms ok 10 + oid 124 ms ok 11 + float4 212 ms ok 12 + float8 254 ms ok 13 + bit 269 ms ok 14 + numeric 1674 ms ok 15 + txid 153 ms ok 16 + uuid 206 ms ok 17 + enum 306 ms ok 18 + money 185 ms ok 19 + rangetypes 1773 ms ok 20 + pg_lsn 126 ms ok 21 + regproc 192 ms # parallel group (20 tests): circle path lseg time md5 line numerology macaddr timetz macaddr8 point date inet timestamp interval strings timestamptz box multirangetypes polygon ok 22 + strings 641 ms ok 23 + md5 106 ms ok 24 + numerology 142 ms ok 25 + point 205 ms ok 26 + lseg 94 ms ok 27 + line 115 ms ok 28 + box 942 ms ok 29 + path 72 ms ok 30 + polygon 1013 ms ok 31 + circle 66 ms ok 32 + date 258 ms ok 33 + time 101 ms ok 34 + timetz 179 ms ok 35 + timestamp 454 ms ok 36 + timestamptz 679 ms ok 37 + interval 494 ms ok 38 + inet 272 ms ok 39 + macaddr 174 ms ok 40 + macaddr8 181 ms ok 41 + multirangetypes 951 ms # parallel group (12 tests): comments unicode misc_sanity xid tstypes expressions mvcc horology geometry type_sanity regex opr_sanity ok 42 + geometry 452 ms ok 43 + horology 262 ms ok 44 + tstypes 222 ms ok 45 + regex 1044 ms ok 46 + type_sanity 549 ms ok 47 + opr_sanity 1602 ms ok 48 + misc_sanity 98 ms ok 49 + comments 38 ms ok 50 + expressions 226 ms ok 51 + unicode 49 ms ok 52 + xid 159 ms ok 53 + mvcc 255 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 54 + copy 220 ms ok 55 + copyselect 79 ms ok 56 + copydml 164 ms ok 57 + insert 731 ms ok 58 + insert_conflict 494 ms # parallel group (7 tests): create_function_c create_operator create_type create_misc create_procedure create_schema create_table ok 59 + create_function_c 57 ms ok 60 + create_misc 143 ms ok 61 + create_operator 58 ms ok 62 + create_procedure 148 ms ok 63 + create_table 1134 ms ok 64 + create_type 134 ms ok 65 + create_schema 168 ms # parallel group (5 tests): index_including create_view index_including_gist create_index_spgist create_index ok 66 + create_index 3805 ms ok 67 + create_index_spgist 2259 ms ok 68 + create_view 1115 ms ok 69 + index_including 642 ms ok 70 + index_including_gist 1156 ms # parallel group (16 tests): create_cast errors roleattributes hash_func create_aggregate drop_if_exists select create_am create_function_sql typed_table infinite_recurse vacuum constraints updatable_views inherit triggers ok 71 + create_aggregate 229 ms ok 72 + create_function_sql 612 ms ok 73 + create_cast 105 ms ok 74 + constraints 1652 ms ok 75 + triggers 5704 ms ok 76 + select 328 ms ok 77 + inherit 3398 ms ok 78 + typed_table 618 ms ok 79 + vacuum 1275 ms ok 80 + drop_if_exists 293 ms ok 81 + updatable_views 2467 ms ok 82 + roleattributes 176 ms ok 83 + create_am 527 ms ok 84 + hash_func 225 ms ok 85 + errors 133 ms ok 86 + infinite_recurse 777 ms ok 87 - sanity_check 536 ms # parallel group (20 tests): select_distinct_on select_having delete select_implicit case namespace random select_into prepared_xacts transactions portals select_distinct union subselect arrays update hash_index join aggregates btree_index ok 88 + select_into 380 ms ok 89 + select_distinct 715 ms ok 90 + select_distinct_on 128 ms ok 91 + select_implicit 204 ms ok 92 + select_having 134 ms ok 93 + subselect 1257 ms ok 94 + union 975 ms ok 95 + case 217 ms ok 96 + join 2683 ms ok 97 + aggregates 2832 ms ok 98 + transactions 608 ms ok 99 + random 280 ms ok 100 + portals 665 ms ok 101 + arrays 1319 ms ok 102 + btree_index 4325 ms ok 103 + hash_index 2362 ms ok 104 + update 1657 ms ok 105 + delete 136 ms ok 106 + namespace 223 ms ok 107 + prepared_xacts 406 ms # parallel group (20 tests): init_privs security_label drop_operator lock password tablesample object_address collate replica_identity groupingsets matview identity generated rowsecurity spgist gin gist brin join_hash privileges ok 108 + brin 4229 ms ok 109 + gin 3215 ms ok 110 + gist 3520 ms ok 111 + spgist 2864 ms ok 112 + privileges 4732 ms ok 113 + init_privs 83 ms ok 114 + security_label 121 ms ok 115 + collate 725 ms ok 116 + matview 1905 ms ok 117 + lock 306 ms ok 118 + replica_identity 838 ms ok 119 + rowsecurity 2740 ms ok 120 + object_address 462 ms ok 121 + tablesample 406 ms ok 122 + groupingsets 1479 ms ok 123 + drop_operator 132 ms ok 124 + password 392 ms ok 125 + identity 1953 ms ok 126 + generated 2443 ms ok 127 + join_hash 4290 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 228 ms ok 129 + brin_multi 1224 ms # parallel group (17 tests): async collate.icu.utf8 dbsize alter_operator tidrangescan tid tidscan tsrf create_role misc_functions sysviews alter_generic misc incremental_sort without_overlaps merge create_table_like ok 130 + create_table_like 943 ms ok 131 + alter_generic 448 ms ok 132 + alter_operator 152 ms ok 133 + misc 592 ms ok 134 + async 74 ms ok 135 + dbsize 84 ms ok 136 + merge 812 ms ok 137 + misc_functions 298 ms ok 138 + sysviews 437 ms ok 139 + tsrf 217 ms ok 140 + tid 194 ms ok 141 + tidscan 208 ms ok 142 + tidrangescan 165 ms ok 143 + collate.icu.utf8 81 ms ok 144 + incremental_sort 614 ms ok 145 + create_role 241 ms ok 146 + without_overlaps 675 ms # parallel group (7 tests): collate.linux.utf8 collate.windows.win1252 psql_crosstab amutils rules psql stats_ext ok 147 + rules 1225 ms ok 148 + psql 1375 ms ok 149 + psql_crosstab 64 ms ok 150 + amutils 79 ms ok 151 + stats_ext 2916 ms ok 152 + collate.linux.utf8 20 ms ok 153 + collate.windows.win1252 34 ms ok 154 - select_parallel 2079 ms ok 155 - write_parallel 238 ms ok 156 - vacuum_parallel 268 ms # parallel group (2 tests): subscription publication ok 157 + publication 1016 ms ok 158 + subscription 142 ms # parallel group (17 tests): portals_p2 advisory_lock combocid xmlmap tsdicts functional_deps equivclass guc dependency select_views indirect_toast window cluster tsearch bitmapops foreign_data foreign_key ok 159 + select_views 723 ms ok 160 + portals_p2 110 ms ok 161 + foreign_key 2915 ms ok 162 + cluster 1179 ms ok 163 + dependency 342 ms ok 164 + guc 305 ms ok 165 + bitmapops 1276 ms ok 166 + combocid 177 ms ok 167 + tsearch 1260 ms ok 168 + tsdicts 238 ms ok 169 + foreign_data 1789 ms ok 170 + window 1091 ms ok 171 + xmlmap 210 ms ok 172 + functional_deps 274 ms ok 173 + advisory_lock 144 ms ok 174 + indirect_toast 1024 ms ok 175 + equivclass 292 ms # parallel group (8 tests): jsonpath_encoding json_encoding jsonpath sqljson jsonb_jsonpath json stats_export_import jsonb ok 176 + json 406 ms ok 177 + jsonb 888 ms ok 178 + json_encoding 74 ms ok 179 + jsonpath 143 ms ok 180 + jsonpath_encoding 65 ms ok 181 + jsonb_jsonpath 376 ms ok 182 + sqljson 214 ms not ok 183 + stats_export_import 574 ms # parallel group (18 tests): prepare returning plancache conversion limit sequence temp copy2 rowtypes polymorphism truncate with largeobject rangefuncs domain xml plpgsql alter_table ok 184 + plancache 523 ms ok 185 + limit 661 ms ok 186 + plpgsql 2931 ms ok 187 + copy2 790 ms ok 188 + temp 786 ms ok 189 + domain 1155 ms ok 190 + rangefuncs 1141 ms ok 191 + prepare 216 ms ok 192 + conversion 604 ms ok 193 + truncate 1000 ms ok 194 + alter_table 4040 ms ok 195 + sequence 783 ms ok 196 + polymorphism 969 ms ok 197 + rowtypes 933 ms ok 198 + returning 316 ms ok 199 + largeobject 1097 ms ok 200 + with 1043 ms ok 201 + xml 2150 ms # parallel group (13 tests): predicate hash_part reloptions explain partition_info memoize compression stats partition_aggregate partition_prune tuplesort partition_join indexing ok 202 + partition_join 3003 ms ok 203 + partition_prune 2687 ms ok 204 + reloptions 211 ms ok 205 + hash_part 161 ms ok 206 + indexing 3084 ms ok 207 + partition_aggregate 2469 ms ok 208 + partition_info 347 ms ok 209 + tuplesort 2946 ms ok 210 + explain 221 ms ok 211 + compression 666 ms ok 212 + memoize 576 ms ok 213 + stats 1344 ms ok 214 + predicate 74 ms # parallel group (2 tests): oidjoins event_trigger ok 215 + oidjoins 471 ms ok 216 + event_trigger 541 ms ok 217 - event_trigger_login 121 ms ok 218 - fast_default 277 ms ok 219 - tablespace 749 ms 1..219 # 1 of 219 tests failed. # The differences that caused some tests to fail can be viewed in the file "/tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/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/recovery/027_stream_regress/data/regression.out". === dumping /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/regression.diffs === diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/stats_export_import.out /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/results/stats_export_import.out --- /tmp/cirrus-ci-build/src/test/regress/expected/stats_export_import.out 2024-02-24 02:17:20.455054033 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/results/stats_export_import.out 2024-02-24 02:24:28.030711234 +0000 @@ -649,21 +649,13 @@ :'table_stats_json'::jsonb, true, false); - pg_import_rel_stats ---------------------- - t -(1 row) - +ERROR: Attribute duplicate count 1511460196 on attnum 1 attname id stainherit f SELECT pg_import_rel_stats( 'stats_export_import.is_odd'::regclass, :'index_stats_json'::jsonb, true, false); - pg_import_rel_stats ---------------------- - t -(1 row) - +ERROR: Attribute duplicate count 1511870120 on attnum 1 attname expr stainherit f SELECT pg_import_ext_stats( e.oid, :'ext_stats_json'::jsonb, @@ -672,11 +664,7 @@ FROM pg_statistic_ext AS e WHERE e.stxrelid = 'stats_export_import.test'::regclass AND e.stxname = 'evens_test'; - pg_import_ext_stats ---------------------- - t -(1 row) - +ERROR: invalid memory alloc request size 2680372684 -- This should return 0 rows SELECT staattnum, stainherit, stanullfrac, stawidth, stadistinct, stakind1, stakind2, stakind3, stakind4, stakind5, @@ -694,9 +682,14 @@ FROM pg_statistic WHERE starelid IN ('stats_export_import.test'::regclass, 'stats_export_import.is_odd'::regclass); - staattnum | stainherit | stanullfrac | stawidth | stadistinct | stakind1 | stakind2 | stakind3 | stakind4 | stakind5 | staop1 | staop2 | staop3 | staop4 | staop5 | stacoll1 | stacoll2 | stacoll3 | stacoll4 | stacoll5 | stanumbers1 | stanumbers2 | stanumbers3 | stanumbers4 | stanumbers5 | sv1 | sv2 | sv3 | sv4 | sv5 ------------+------------+-------------+----------+-------------+----------+----------+----------+----------+----------+--------+--------+--------+--------+--------+----------+----------+----------+----------+----------+-------------+-------------+-------------+-------------+-------------+-----+-----+-----+-----+----- -(0 rows) + staattnum | stainherit | stanullfrac | stawidth | stadistinct | stakind1 | stakind2 | stakind3 | stakind4 | stakind5 | staop1 | staop2 | staop3 | staop4 | staop5 | stacoll1 | stacoll2 | stacoll3 | stacoll4 | stacoll5 | stanumbers1 | stanumbers2 | stanumbers3 | stanumbers4 | stanumbers5 | sv1 | sv2 | sv3 | sv4 | sv5 +-----------+------------+-------------+----------+-------------+----------+----------+----------+----------+----------+--------+--------+--------+--------+--------+----------+----------+----------+----------+----------+-------------+-------------+--------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------+-----+--------------------------------------------------+-----+----- + 1 | f | 0 | 4 | -1 | 2 | 3 | 0 | 0 | 0 | 97 | 97 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | {1} | | | | {1,2,3,4} | | | | + 3 | f | 0.25 | 57 | -0.75 | 2 | 3 | 0 | 0 | 0 | 2990 | 2990 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | {1} | | | | {"(1,1.1,ONE,01-01-2001,\"{\"\"xkey\"\": \"\"xval\"\"}\")","(2,2.2,TWO,02-02-2002,\"[true, 4, \"\"six\"\"]\")","(3,3.3,TRE,03-03-2003,)"} | | | | + 4 | f | 0.25 | 45 | -0.75 | 2 | 3 | 4 | 5 | 0 | 1072 | 1072 | 98 | 98 | 0 | 100 | 100 | 100 | 100 | 0 | | {-1} | {0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0.33333334,0} | {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2.3333333} | | {"{\"\\\"orange\\\"\",purple,cyan}","{blue,yellow}","{red,green}"} | | {"\"orange\"",blue,cyan,green,purple,red,yellow} | | + 2 | f | 0 | 4 | -1 | 2 | 3 | 0 | 0 | 0 | 664 | 664 | 0 | 0 | 0 | 100 | 100 | 0 | 0 | 0 | | {-0.4} | | | | {four,one,tre,two} | | | | + 1 | f | 0.25 | 1 | -0.5 | 1 | 3 | 0 | 0 | 0 | 91 | 58 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | {0.5} | {0.5} | | | | {t} | | | | +(5 rows) -- This should return 0 rows SELECT staattnum, stainherit, stanullfrac, stawidth, stadistinct, @@ -726,8 +719,8 @@ ORDER BY relname; relname | reltuples ---------+----------- - is_odd | 4 - test | 4 + is_odd | 0 + test | -1 (2 rows) -- This should return 0 rows @@ -760,9 +753,10 @@ JOIN pg_statistic_ext_data AS d ON d.stxoid = e.oid WHERE e.stxrelid = 'stats_export_import.test'::regclass AND e.stxname = 'evens_test'; - stxdinherit | stxdndistinct | stxddependencies | stxdmcv | stxdexpr --------------+---------------+------------------+---------+---------- -(0 rows) + stxdinherit | stxdndistinct | stxddependencies | stxdmcv | stxdexpr +-------------+---------------+--------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------- + f | {"2, -1": 4} | {"2 => -1": 1.000000, "-1 => 2": 0.500000} | \xc251a6e1010000000400000002001900000010000000040000001d00000020000000ffffffff00000000020000000200000000000000010000000100000004000000666f7572030000006f6e65030000007472650300000074776f00010001000000000000d03f000000000000b03f000000000000000000000000d03f000000000000c03f010000000000000000000000d03f000000000000c03f020000000000000000000000d03f000000000000b03f03000100 | {"(0,0,f,0.25,1,-0.5,1,3,0,0,0,91,58,0,0,0,0,0,0,0,0,{0.5},{0.5},,,,{f},,,,)"} +(1 row) SELECT staattnum, stainherit, stanullfrac, stawidth, stadistinct, stakind1, stakind2, stakind3, stakind4, stakind5, === EOF === [02:24:37.573](49.624s) not ok 2 - regression tests pass [02:24:37.573](0.000s) # Failed test 'regression tests pass' # at /tmp/cirrus-ci-build/src/test/recovery/t/027_stream_regress.pl line 95. [02:24:37.573](0.000s) # got: '256' # expected: '0' 5 1 1 1 1 2 1 1 9 5 5 3 4 3 4 4 1 32 1 1 1 6 104 2 1 1006 1 2 4001 41 5 17 9 1 33 34 46 1 1 1 1 -1 1 1 -1 -32768 32767 -2 1 1 Waiting for replication conn standby_1's replay_lsn to pass 0/13F153CC on primary done # Running: pg_dumpall -f /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/primary.dump --no-sync -p 55639 --no-unlogged-table-data [02:24:40.310](2.737s) ok 3 - dump primary server # Running: pg_dumpall -f /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/standby.dump --no-sync -p 55640 [02:24:42.957](2.647s) ok 4 - dump standby server # Running: diff /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/primary.dump /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/standby.dump [02:24:43.036](0.080s) ok 5 - compare primary and standby dumps [02:24:43.276](0.239s) ok 6 - check contents of pg_stat_statements on regression database ### Stopping node "standby_1" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/pgdata -m fast stop waiting for server to shut down.... done server stopped # No postmaster PID for node "standby_1" ### Stopping node "primary" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata -m fast stop waiting for server to shut down.... done server stopped # No postmaster PID for node "primary" [02:24:43.502](0.226s) 1..6 [02:24:43.503](0.001s) # Looks like you failed 1 test of 6.