# Checking port 62162 # Found port 62162 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=62162 host=/tmp/_jHqU7vNia Log file: /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/log/027_stream_regress_primary.log [22:29:25.463](0.027s) # 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 64683 (standby_1,) [22:29:25.924](0.461s) 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/_jHqU7vNia -p 62162 --checkpoint fast --no-sync # Backup finished # Checking port 62163 # Found port 62163 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=62163 host=/tmp/_jHqU7vNia 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 64824 # using postmaster on /tmp/_jHqU7vNia, port 62162 ok 1 - test_setup 570 ms # parallel group (20 tests): varchar pg_lsn oid text regproc char txid int2 money name int4 uuid float4 float8 int8 boolean bit enum numeric rangetypes ok 2 + boolean 280 ms ok 3 + char 160 ms ok 4 + name 188 ms ok 5 + varchar 86 ms ok 6 + text 150 ms ok 7 + int2 163 ms ok 8 + int4 194 ms ok 9 + int8 275 ms ok 10 + oid 141 ms ok 11 + float4 202 ms ok 12 + float8 267 ms ok 13 + bit 327 ms ok 14 + numeric 900 ms ok 15 + txid 160 ms ok 16 + uuid 198 ms ok 17 + enum 343 ms ok 18 + money 179 ms ok 19 + rangetypes 1372 ms ok 20 + pg_lsn 132 ms ok 21 + regproc 157 ms # parallel group (20 tests): lseg line macaddr path md5 circle point time macaddr8 timetz numerology inet date interval strings timestamp timestamptz box polygon multirangetypes ok 22 + strings 533 ms ok 23 + md5 133 ms ok 24 + numerology 266 ms ok 25 + point 158 ms ok 26 + lseg 77 ms ok 27 + line 89 ms ok 28 + box 1183 ms ok 29 + path 103 ms ok 30 + polygon 1225 ms ok 31 + circle 137 ms ok 32 + date 295 ms ok 33 + time 157 ms ok 34 + timetz 204 ms ok 35 + timestamp 577 ms ok 36 + timestamptz 749 ms ok 37 + interval 399 ms ok 38 + inet 269 ms ok 39 + macaddr 92 ms ok 40 + macaddr8 192 ms ok 41 + multirangetypes 1271 ms # parallel group (12 tests): comments unicode misc_sanity tstypes xid mvcc expressions geometry horology type_sanity regex opr_sanity ok 42 + geometry 444 ms ok 43 + horology 577 ms ok 44 + tstypes 299 ms ok 45 + regex 1166 ms ok 46 + type_sanity 765 ms ok 47 + opr_sanity 1539 ms ok 48 + misc_sanity 148 ms ok 49 + comments 81 ms ok 50 + expressions 401 ms ok 51 + unicode 87 ms ok 52 + xid 306 ms ok 53 + mvcc 392 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 54 + copy 372 ms ok 55 + copyselect 131 ms ok 56 + copydml 149 ms ok 57 + insert 1212 ms ok 58 + insert_conflict 487 ms # parallel group (7 tests): create_function_c create_operator create_type create_schema create_procedure create_misc create_table ok 59 + create_function_c 46 ms ok 60 + create_misc 235 ms ok 61 + create_operator 88 ms ok 62 + create_procedure 233 ms ok 63 + create_table 1716 ms ok 64 + create_type 158 ms ok 65 + create_schema 223 ms # parallel group (5 tests): index_including index_including_gist create_view create_index_spgist create_index ok 66 + create_index 3319 ms ok 67 + create_index_spgist 2451 ms ok 68 + create_view 1587 ms ok 69 + index_including 687 ms ok 70 + index_including_gist 1117 ms # parallel group (16 tests): errors create_cast hash_func roleattributes select create_aggregate drop_if_exists typed_table create_am create_function_sql infinite_recurse constraints vacuum updatable_views inherit triggers ok 71 + create_aggregate 312 ms ok 72 + create_function_sql 662 ms ok 73 + create_cast 189 ms ok 74 + constraints 1282 ms ok 75 + triggers 4988 ms ok 76 + select 274 ms ok 77 + inherit 3624 ms ok 78 + typed_table 598 ms ok 79 + vacuum 1327 ms ok 80 + drop_if_exists 345 ms ok 81 + updatable_views 2375 ms ok 82 + roleattributes 239 ms ok 83 + create_am 643 ms ok 84 + hash_func 234 ms ok 85 + errors 107 ms ok 86 + infinite_recurse 721 ms ok 87 - sanity_check 197 ms # parallel group (20 tests): select_distinct_on delete select_having namespace random case select_implicit select_into prepared_xacts select_distinct portals transactions subselect union arrays update hash_index aggregates join btree_index ok 88 + select_into 281 ms ok 89 + select_distinct 550 ms ok 90 + select_distinct_on 103 ms ok 91 + select_implicit 213 ms ok 92 + select_having 167 ms ok 93 + subselect 794 ms ok 94 + union 900 ms ok 95 + case 206 ms ok 96 + join 2364 ms ok 97 + aggregates 2241 ms ok 98 + transactions 566 ms ok 99 + random 198 ms ok 100 + portals 552 ms ok 101 + arrays 923 ms ok 102 + btree_index 3960 ms ok 103 + hash_index 1838 ms ok 104 + update 1297 ms ok 105 + delete 151 ms ok 106 + namespace 172 ms ok 107 + prepared_xacts 305 ms # parallel group (20 tests): drop_operator security_label init_privs tablesample password lock object_address collate replica_identity groupingsets matview identity rowsecurity generated spgist brin gin gist privileges join_hash ok 108 + brin 3570 ms ok 109 + gin 3784 ms ok 110 + gist 3844 ms ok 111 + spgist 3239 ms ok 112 + privileges 4350 ms ok 113 + init_privs 204 ms ok 114 + security_label 170 ms ok 115 + collate 876 ms ok 116 + matview 1774 ms ok 117 + lock 453 ms ok 118 + replica_identity 897 ms ok 119 + rowsecurity 3163 ms ok 120 + object_address 621 ms ok 121 + tablesample 375 ms ok 122 + groupingsets 1346 ms ok 123 + drop_operator 134 ms ok 124 + password 424 ms ok 125 + identity 2084 ms ok 126 + generated 3225 ms ok 127 + join_hash 4827 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 170 ms ok 129 + brin_multi 1135 ms # parallel group (17 tests): collate.icu.utf8 dbsize async tidrangescan tsrf tid alter_operator create_role tidscan sysviews misc_functions alter_generic incremental_sort misc without_overlaps merge create_table_like ok 130 + create_table_like 763 ms ok 131 + alter_generic 399 ms ok 132 + alter_operator 203 ms ok 133 + misc 523 ms ok 134 + async 62 ms ok 135 + dbsize 57 ms ok 136 + merge 721 ms ok 137 + misc_functions 380 ms ok 138 + sysviews 324 ms ok 139 + tsrf 175 ms ok 140 + tid 197 ms ok 141 + tidscan 225 ms ok 142 + tidrangescan 126 ms ok 143 + collate.icu.utf8 39 ms ok 144 + incremental_sort 503 ms ok 145 + create_role 221 ms ok 146 + without_overlaps 612 ms # parallel group (7 tests): collate.linux.utf8 amutils collate.windows.win1252 psql_crosstab psql rules stats_ext ok 147 + rules 1102 ms ok 148 + psql 1084 ms ok 149 + psql_crosstab 121 ms ok 150 + amutils 38 ms ok 151 + stats_ext 2703 ms ok 152 + collate.linux.utf8 27 ms ok 153 + collate.windows.win1252 50 ms ok 154 - select_parallel 2136 ms ok 155 - write_parallel 252 ms ok 156 - vacuum_parallel 288 ms # parallel group (2 tests): subscription publication ok 157 + publication 939 ms ok 158 + subscription 148 ms # parallel group (17 tests): combocid portals_p2 advisory_lock xmlmap functional_deps equivclass tsdicts guc dependency select_views indirect_toast cluster bitmapops window tsearch foreign_data foreign_key ok 159 + select_views 670 ms ok 160 + portals_p2 161 ms ok 161 + foreign_key 3364 ms ok 162 + cluster 1137 ms ok 163 + dependency 399 ms ok 164 + guc 353 ms ok 165 + bitmapops 1213 ms ok 166 + combocid 108 ms ok 167 + tsearch 1383 ms ok 168 + tsdicts 322 ms ok 169 + foreign_data 1931 ms ok 170 + window 1316 ms ok 171 + xmlmap 176 ms ok 172 + functional_deps 253 ms ok 173 + advisory_lock 161 ms ok 174 + indirect_toast 931 ms ok 175 + equivclass 279 ms # parallel group (8 tests): jsonpath_encoding json_encoding jsonpath sqljson json jsonb_jsonpath stats_export_import jsonb ok 176 + json 288 ms ok 177 + jsonb 788 ms ok 178 + json_encoding 77 ms ok 179 + jsonpath 83 ms ok 180 + jsonpath_encoding 48 ms ok 181 + jsonb_jsonpath 323 ms ok 182 + sqljson 237 ms not ok 183 + stats_export_import 503 ms # parallel group (18 tests): prepare returning plancache limit conversion temp sequence copy2 polymorphism rowtypes largeobject truncate rangefuncs with domain xml plpgsql alter_table ok 184 + plancache 452 ms ok 185 + limit 515 ms ok 186 + plpgsql 2629 ms ok 187 + copy2 838 ms ok 188 + temp 624 ms ok 189 + domain 1282 ms ok 190 + rangefuncs 1170 ms ok 191 + prepare 153 ms ok 192 + conversion 516 ms ok 193 + truncate 1145 ms ok 194 + alter_table 3722 ms ok 195 + sequence 708 ms ok 196 + polymorphism 852 ms ok 197 + rowtypes 868 ms ok 198 + returning 233 ms ok 199 + largeobject 893 ms ok 200 + with 1176 ms ok 201 + xml 2322 ms # parallel group (13 tests): predicate hash_part reloptions explain partition_info memoize compression stats partition_join partition_aggregate partition_prune tuplesort indexing ok 202 + partition_join 2388 ms ok 203 + partition_prune 2733 ms ok 204 + reloptions 151 ms ok 205 + hash_part 114 ms ok 206 + indexing 3072 ms ok 207 + partition_aggregate 2521 ms ok 208 + partition_info 270 ms ok 209 + tuplesort 3008 ms ok 210 + explain 215 ms ok 211 + compression 623 ms ok 212 + memoize 564 ms ok 213 + stats 1330 ms ok 214 + predicate 67 ms # parallel group (2 tests): oidjoins event_trigger ok 215 + oidjoins 526 ms ok 216 + event_trigger 591 ms ok 217 - event_trigger_login 111 ms ok 218 - fast_default 265 ms ok 219 - tablespace 537 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-25 22:23:15.583344942 +0000 +++ /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/results/stats_export_import.out 2024-02-25 22:30:06.118999319 +0000 @@ -649,21 +649,13 @@ :'table_stats_json'::jsonb, true, false); - pg_import_rel_stats ---------------------- - t -(1 row) - +ERROR: Attribute duplicate count 1484911828 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 1485329960 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 2255598028 -- 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 === [22:30:14.927](49.003s) not ok 2 - regression tests pass [22:30:14.927](0.000s) # Failed test 'regression tests pass' # at /tmp/cirrus-ci-build/src/test/recovery/t/027_stream_regress.pl line 95. [22:30:14.927](0.000s) # got: '256' # expected: '0' 5 1 1 1 1 2 1 1 9 5 5 3 4 3 4 4 1 1006 32 1 1 1 6 104 2 1 1 2 4001 41 5 17 9 1 33 34 1 1 1 1 -1 1 1 -1 -32768 32767 -2 46 1 1 Waiting for replication conn standby_1's replay_lsn to pass 0/13E5E1CC on primary done # Running: pg_dumpall -f /tmp/cirrus-ci-build/build-32/testrun/recovery/027_stream_regress/data/primary.dump --no-sync -p 62162 --no-unlogged-table-data [22:30:17.708](2.781s) 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 62163 [22:30:20.350](2.642s) 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 [22:30:20.393](0.043s) ok 5 - compare primary and standby dumps [22:30:20.579](0.185s) 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" [22:30:20.698](0.120s) 1..6 [22:30:20.699](0.001s) # Looks like you failed 1 test of 6.