# Checking port 52720 # Found port 52720 Name: primary Data directory: C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_primary_data/pgdata Backup directory: C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_primary_data/backup Archive directory: C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_primary_data/archives Connection string: port=52720 host=C:/Windows/TEMP/i0nqD_odQ9 Log file: C:\cirrus\build/testrun/recovery/027_stream_regress\log/027_stream_regress_primary.log [02:21:24.960](0.079s) # initializing database system by copying initdb template # Running: robocopy /E /NJS /NJH /NFL /NDL /NP C:/cirrus/build/tmp_install/initdb-template C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_primary_data/pgdata # Running: C:\cirrus\build\src/test\regress\pg_regress.exe --config-auth C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_primary_data/pgdata ### Starting node "primary" # Running: pg_ctl -w -D C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_primary_data/pgdata -l C:\cirrus\build/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 7252 (standby_1,) [02:21:26.071](1.111s) ok 1 - physical slot created on primary # Taking pg_basebackup my_backup from node "primary" # Running: pg_basebackup -D C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_primary_data/backup/my_backup -h C:/Windows/TEMP/i0nqD_odQ9 -p 52720 --checkpoint fast --no-sync # Backup finished # Checking port 52721 # Found port 52721 Name: standby_1 Data directory: C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_standby_1_data/pgdata Backup directory: C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_standby_1_data/backup Archive directory: C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_standby_1_data/archives Connection string: port=52721 host=C:/Windows/TEMP/i0nqD_odQ9 Log file: C:\cirrus\build/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 C:\cirrus\build/testrun/recovery/027_stream_regress\data/t_027_stream_regress_standby_1_data/pgdata -l C:\cirrus\build/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 5344 # using postmaster on C:/Windows/TEMP/i0nqD_odQ9, port 52720 ok 1 - test_setup 667 ms # parallel group (20 tests): char varchar oid text int2 name boolean txid int8 float8 float4 money bit uuid int4 pg_lsn enum regproc rangetypes numeric ok 2 + boolean 1353 ms ok 3 + char 1000 ms ok 4 + name 1350 ms ok 5 + varchar 997 ms ok 6 + text 1269 ms ok 7 + int2 1267 ms ok 8 + int4 1510 ms ok 9 + int8 1342 ms ok 10 + oid 989 ms ok 11 + float4 1341 ms ok 12 + float8 1337 ms ok 13 + bit 1166 ms ok 14 + numeric 1720 ms ok 15 + txid 998 ms ok 16 + uuid 1163 ms ok 17 + enum 1210 ms ok 18 + money 1000 ms ok 19 + rangetypes 1606 ms ok 20 + pg_lsn 1157 ms ok 21 + regproc 1207 ms # parallel group (20 tests): point md5 time lseg numerology path timetz strings inet date circle timestamp interval timestamptz macaddr line macaddr8 polygon box multirangetypes ok 22 + strings 1115 ms ok 23 + md5 727 ms ok 24 + numerology 945 ms ok 25 + point 724 ms ok 26 + lseg 942 ms ok 27 + line 1200 ms ok 28 + box 1399 ms ok 29 + path 938 ms ok 30 + polygon 1277 ms ok 31 + circle 1195 ms ok 32 + date 1106 ms ok 33 + time 713 ms ok 34 + timetz 1097 ms ok 35 + timestamp 1189 ms ok 36 + timestamptz 1188 ms ok 37 + interval 1186 ms ok 38 + inet 1096 ms ok 39 + macaddr 1183 ms ok 40 + macaddr8 1258 ms ok 41 + multirangetypes 1671 ms # parallel group (12 tests): tstypes comments misc_sanity expressions type_sanity mvcc unicode horology xid geometry regex opr_sanity ok 42 + geometry 971 ms ok 43 + horology 919 ms ok 44 + tstypes 635 ms ok 45 + regex 1096 ms ok 46 + type_sanity 713 ms ok 47 + opr_sanity 1112 ms ok 48 + misc_sanity 695 ms ok 49 + comments 693 ms ok 50 + expressions 707 ms ok 51 + unicode 756 ms ok 52 + xid 956 ms ok 53 + mvcc 753 ms # parallel group (5 tests): copydml copyselect copy insert_conflict insert ok 54 + copy 905 ms ok 55 + copyselect 590 ms ok 56 + copydml 588 ms ok 57 + insert 1545 ms ok 58 + insert_conflict 1221 ms # parallel group (7 tests): create_function_c create_schema create_procedure create_misc create_operator create_type create_table ok 59 + create_function_c 417 ms ok 60 + create_misc 433 ms ok 61 + create_operator 432 ms ok 62 + create_procedure 430 ms ok 63 + create_table 1823 ms ok 64 + create_type 428 ms ok 65 + create_schema 418 ms # parallel group (5 tests): index_including create_view index_including_gist create_index_spgist create_index ok 66 + create_index 3047 ms ok 67 + create_index_spgist 2137 ms ok 68 + create_view 1731 ms ok 69 + index_including 957 ms ok 70 + index_including_gist 1860 ms # parallel group (16 tests): typed_table infinite_recurse roleattributes create_cast errors hash_func select create_function_sql drop_if_exists create_am create_aggregate constraints vacuum updatable_views inherit triggers ok 71 + create_aggregate 969 ms ok 72 + create_function_sql 880 ms ok 73 + create_cast 792 ms ok 74 + constraints 1848 ms ok 75 + triggers 5110 ms ok 76 + select 825 ms ok 77 + inherit 3892 ms ok 78 + typed_table 702 ms ok 79 + vacuum 3040 ms ok 80 + drop_if_exists 895 ms ok 81 + updatable_views 3313 ms ok 82 + roleattributes 769 ms ok 83 + create_am 894 ms ok 84 + hash_func 777 ms ok 85 + errors 775 ms ok 86 + infinite_recurse 691 ms ok 87 - sanity_check 582 ms # parallel group (20 tests): select_having random select_distinct_on delete select_into select_implicit subselect case portals namespace prepared_xacts transactions select_distinct arrays union update hash_index join aggregates btree_index ok 88 + select_into 1323 ms ok 89 + select_distinct 2679 ms ok 90 + select_distinct_on 1317 ms ok 91 + select_implicit 1320 ms ok 92 + select_having 1088 ms ok 93 + subselect 2138 ms ok 94 + union 2699 ms ok 95 + case 2134 ms ok 96 + join 4139 ms ok 97 + aggregates 4395 ms ok 98 + transactions 2447 ms ok 99 + random 1300 ms ok 100 + portals 2125 ms ok 101 + arrays 2686 ms ok 102 + btree_index 6935 ms ok 103 + hash_index 3528 ms ok 104 + update 3525 ms ok 105 + delete 1291 ms ok 106 + namespace 2434 ms ok 107 + prepared_xacts 2433 ms # parallel group (20 tests): drop_operator password groupingsets lock init_privs tablesample object_address replica_identity security_label collate spgist identity matview gin rowsecurity generated gist join_hash brin privileges ok 108 + brin 10606 ms ok 109 + gin 3924 ms ok 110 + gist 5547 ms ok 111 + spgist 2488 ms ok 112 + privileges 12944 ms ok 113 + init_privs 1987 ms ok 114 + security_label 2477 ms ok 115 + collate 2481 ms ok 116 + matview 3855 ms ok 117 + lock 1982 ms ok 118 + replica_identity 2247 ms ok 119 + rowsecurity 4029 ms ok 120 + object_address 2188 ms ok 121 + tablesample 1976 ms ok 122 + groupingsets 1975 ms ok 123 + drop_operator 1863 ms ok 124 + password 1861 ms ok 125 + identity 3694 ms ok 126 + generated 4066 ms ok 127 + join_hash 10539 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 396 ms ok 129 + brin_multi 1867 ms # parallel group (17 tests): tid alter_operator async dbsize collate.icu.utf8 tidscan tidrangescan tsrf sysviews alter_generic misc_functions without_overlaps create_role misc incremental_sort create_table_like merge ok 130 + create_table_like 1281 ms ok 131 + alter_generic 1065 ms ok 132 + alter_operator 571 ms ok 133 + misc 1231 ms ok 134 + async 568 ms ok 135 + dbsize 736 ms ok 136 + merge 1531 ms ok 137 + misc_functions 1056 ms ok 138 + sysviews 1046 ms ok 139 + tsrf 1024 ms ok 140 + tid 560 ms ok 141 + tidscan 949 ms ok 142 + tidrangescan 998 ms ok 143 + collate.icu.utf8 724 ms ok 144 + incremental_sort 1261 ms ok 145 + create_role 1212 ms ok 146 + without_overlaps 1098 ms # parallel group (7 tests): collate.linux.utf8 amutils psql_crosstab collate.windows.win1252 psql rules stats_ext ok 147 + rules 1943 ms ok 148 + psql 1569 ms ok 149 + psql_crosstab 589 ms ok 150 + amutils 587 ms ok 151 + stats_ext 5353 ms ok 152 + collate.linux.utf8 348 ms ok 153 + collate.windows.win1252 697 ms ok 154 - select_parallel 6106 ms ok 155 - write_parallel 776 ms ok 156 - vacuum_parallel 434 ms # parallel group (2 tests): subscription publication ok 157 + publication 2138 ms ok 158 + subscription 864 ms # parallel group (17 tests): functional_deps portals_p2 combocid tsdicts dependency guc select_views equivclass advisory_lock xmlmap tsearch window cluster bitmapops foreign_data indirect_toast foreign_key ok 159 + select_views 1590 ms ok 160 + portals_p2 996 ms ok 161 + foreign_key 3858 ms ok 162 + cluster 2192 ms ok 163 + dependency 1452 ms ok 164 + guc 1580 ms ok 165 + bitmapops 2196 ms ok 166 + combocid 986 ms ok 167 + tsearch 1780 ms ok 168 + tsdicts 1366 ms ok 169 + foreign_data 2591 ms ok 170 + window 1939 ms ok 171 + xmlmap 1773 ms ok 172 + functional_deps 977 ms ok 173 + advisory_lock 1632 ms ok 174 + indirect_toast 2620 ms ok 175 + equivclass 1629 ms # parallel group (8 tests): stats_export_import jsonpath jsonpath_encoding json json_encoding jsonb_jsonpath sqljson jsonb ok 176 + json 572 ms ok 177 + jsonb 914 ms ok 178 + json_encoding 682 ms ok 179 + jsonpath 487 ms ok 180 + jsonpath_encoding 536 ms ok 181 + jsonb_jsonpath 698 ms ok 182 + sqljson 701 ms not ok 183 + stats_export_import 481 ms # parallel group (18 tests): limit conversion returning prepare largeobject rowtypes xml truncate plancache sequence rangefuncs with polymorphism domain copy2 temp plpgsql alter_table ok 184 + plancache 2447 ms ok 185 + limit 872 ms ok 186 + plpgsql 3756 ms ok 187 + copy2 2877 ms ok 188 + temp 2983 ms ok 189 + domain 2874 ms ok 190 + rangefuncs 2665 ms ok 191 + prepare 1438 ms ok 192 + conversion 923 ms ok 193 + truncate 1634 ms ok 194 + alter_table 5685 ms ok 195 + sequence 2469 ms ok 196 + polymorphism 2711 ms ok 197 + rowtypes 1432 ms ok 198 + returning 1388 ms ok 199 + largeobject 1428 ms ok 200 + with 2651 ms ok 201 + xml 1556 ms # parallel group (13 tests): hash_part partition_info compression predicate explain reloptions memoize indexing partition_join stats partition_aggregate tuplesort partition_prune ok 202 + partition_join 3948 ms ok 203 + partition_prune 6729 ms ok 204 + reloptions 2210 ms ok 205 + hash_part 1502 ms ok 206 + indexing 3830 ms ok 207 + partition_aggregate 4740 ms ok 208 + partition_info 1593 ms ok 209 + tuplesort 5305 ms ok 210 + explain 2130 ms ok 211 + compression 1717 ms ok 212 + memoize 2430 ms ok 213 + stats 4284 ms ok 214 + predicate 1712 ms # parallel group (2 tests): oidjoins event_trigger ok 215 + oidjoins 707 ms ok 216 + event_trigger 814 ms ok 217 - event_trigger_login 456 ms ok 218 - fast_default 601 ms ok 219 - tablespace 1559 ms 1..219 # 1 of 219 tests failed. # The differences that caused some tests to fail can be viewed in the file "C:/cirrus/build/testrun/recovery/027_stream_regress/data/regression.diffs". # A copy of the test summary that you see above is saved in the file "C:/cirrus/build/testrun/recovery/027_stream_regress/data/regression.out". === dumping C:\cirrus\build/testrun/recovery/027_stream_regress\data/regression.diffs === diff -w -U3 C:/cirrus/src/test/regress/expected/stats_export_import.out C:/cirrus/build/testrun/recovery/027_stream_regress/data/results/stats_export_import.out --- C:/cirrus/src/test/regress/expected/stats_export_import.out 2024-02-24 02:17:33.341566500 +0000 +++ C:/cirrus/build/testrun/recovery/027_stream_regress/data/results/stats_export_import.out 2024-02-24 02:22:50.799157600 +0000 @@ -630,40 +630,32 @@ \gset SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_types_doc'::jsonb, true, true); -ERROR: statistic export JSON document "types" has duplicate rows with oid = 2 +ERROR: Cannot import statistics from server version 170000 to -1971835608 SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_collations_doc'::jsonb, true, true); -ERROR: statistic export JSON document "collations" has duplicate rows with oid = 1 +ERROR: Cannot import statistics from server version 170000 to -1971495800 SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_operators_doc'::jsonb, true, true); -ERROR: statistic export JSON document "operators" has duplicate rows with oid = 3 +ERROR: Cannot import statistics from server version 170000 to -1971399880 SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_attributes_doc'::jsonb, true, true); -ERROR: statistic export JSON document "attributes" has duplicate rows with attnum = 4 +ERROR: Cannot import statistics from server version 170000 to -1971914088 SELECT pg_import_rel_stats('stats_export_import.test'::regclass, :'invalid_statistics_doc'::jsonb, true, true); -ERROR: statistic export JSON document "statistics" has duplicate rows with staattnum = 1, stainherit = f +ERROR: Cannot import statistics from server version 170000 to -1972044792 -- Import stats SELECT pg_import_rel_stats( 'stats_export_import.test'::regclass, :'table_stats_json'::jsonb, true, false); - pg_import_rel_stats ---------------------- - t -(1 row) - +ERROR: Cannot import statistics from server version 170000 to -1972449944 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: Cannot import statistics from server version 170000 to -1971835608 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: Cannot import statistics from server version 170000 to -1971495800 -- This should return 0 rows SELECT staattnum, stainherit, stanullfrac, stawidth, stadistinct, stakind1, stakind2, stakind3, stakind4, stakind5, @@ -695,8 +683,13 @@ 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) +-----------+------------+-------------+----------+-------------+----------+----------+----------+----------+----------+--------+--------+--------+--------+--------+----------+----------+----------+----------+----------+-------------+-------------+--------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------+-----+--------------------------------------------------+-----+----- + 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} | | | | + 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} | | + 3 | f | 0.25 | 61 | -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,)"} | | | | + 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 @@ -761,8 +754,9 @@ WHERE e.stxrelid = 'stats_export_import.test'::regclass AND e.stxname = 'evens_test'; stxdinherit | stxdndistinct | stxddependencies | stxdmcv | stxdexpr --------------+---------------+------------------+---------+---------- -(0 rows) +-------------+---------------+--------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------- + 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:23:13.540](107.469s) not ok 2 - regression tests pass [02:23:13.540](0.000s) # Failed test 'regression tests pass' # at C:/cirrus/src/test/recovery/t/027_stream_regress.pl line 95. [02:23:13.540](0.000s) # got: '256' # expected: '0' 1 1 1 2 1 1 1 5 9 5 5 4001 3 4 3 4 4 1 32 1 1 1 6 104 2 1 41 1006 1 2 1 5 -2 17 9 1 33 34 1 1 1 1 -1 1 1 -1 -32768 32767 46 1 Waiting for replication conn standby_1's replay_lsn to pass 0/141C1E90 on primary done # Running: pg_dumpall -f C:\cirrus\build/testrun/recovery/027_stream_regress\data/primary.dump --no-sync -p 52720 --no-unlogged-table-data [02:23:18.849](5.309s) ok 3 - dump primary server # Running: pg_dumpall -f C:\cirrus\build/testrun/recovery/027_stream_regress\data/standby.dump --no-sync -p 52721 [02:23:23.280](4.431s) ok 4 - dump standby server # Running: diff C:\cirrus\build/testrun/recovery/027_stream_regress\data/primary.dump C:\cirrus\build/testrun/recovery/027_stream_regress\data/standby.dump [02:23:23.388](0.109s) ok 5 - compare primary and standby dumps [02:23:24.000](0.611s) ok 6 - check contents of pg_stat_statements on regression database ### Stopping node "standby_1" using mode fast # Running: pg_ctl -D C:\cirrus\build/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 C:\cirrus\build/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:23:24.263](0.263s) 1..6 [02:23:24.270](0.007s) # Looks like you failed 1 test of 6.