# Checking port 54656 # Found port 54656 Name: primary Data directory: /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata Backup directory: /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/backup Archive directory: /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/archives Connection string: port=54656 host=/var/folders/n8/pp_chp6x3jlfy1n94r6hdjv40000gn/T/lfjxRf0xBk Log file: /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/log/027_stream_regress_primary.log [01:58:13.575](0.015s) # initializing database system by copying initdb template # Running: cp -RPp /Users/admin/pgsql/build/tmp_install/initdb-template /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata # Running: /Users/admin/pgsql/build/src/test/regress/pg_regress --config-auth /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata ### Starting node "primary" # Running: pg_ctl -w -D /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata -l /Users/admin/pgsql/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 16680 (standby_1,) [01:58:14.638](1.063s) ok 1 - physical slot created on primary # Taking pg_basebackup my_backup from node "primary" # Running: pg_basebackup -D /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/backup/my_backup -h /var/folders/n8/pp_chp6x3jlfy1n94r6hdjv40000gn/T/lfjxRf0xBk -p 54656 --checkpoint fast --no-sync # Backup finished # Checking port 54657 # Found port 54657 Name: standby_1 Data directory: /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/pgdata Backup directory: /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/backup Archive directory: /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/archives Connection string: port=54657 host=/var/folders/n8/pp_chp6x3jlfy1n94r6hdjv40000gn/T/lfjxRf0xBk Log file: /Users/admin/pgsql/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 /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/pgdata -l /Users/admin/pgsql/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 16778 # using postmaster on /var/folders/n8/pp_chp6x3jlfy1n94r6hdjv40000gn/T/lfjxRf0xBk, port 54656 ok 1 - test_setup 1048 ms # parallel group (20 tests): oid name char varchar txid float4 int2 int4 boolean money float8 bit int8 enum uuid text pg_lsn regproc rangetypes numeric ok 2 + boolean 297 ms ok 3 + char 249 ms ok 4 + name 241 ms ok 5 + varchar 254 ms ok 6 + text 347 ms ok 7 + int2 282 ms ok 8 + int4 288 ms ok 9 + int8 311 ms ok 10 + oid 229 ms ok 11 + float4 265 ms ok 12 + float8 290 ms ok 13 + bit 290 ms ok 14 + numeric 1316 ms ok 15 + txid 234 ms ok 16 + uuid 306 ms ok 17 + enum 281 ms ok 18 + money 252 ms ok 19 + rangetypes 1222 ms ok 20 + pg_lsn 300 ms ok 21 + regproc 317 ms # parallel group (20 tests): md5 lseg path line circle point macaddr time numerology timetz macaddr8 inet date polygon interval timestamp timestamptz strings box multirangetypes ok 22 + strings 597 ms ok 23 + md5 87 ms ok 24 + numerology 378 ms ok 25 + point 266 ms ok 26 + lseg 94 ms ok 27 + line 113 ms ok 28 + box 596 ms ok 29 + path 102 ms ok 30 + polygon 419 ms ok 31 + circle 204 ms ok 32 + date 393 ms ok 33 + time 249 ms ok 34 + timetz 351 ms ok 35 + timestamp 475 ms ok 36 + timestamptz 537 ms ok 37 + interval 454 ms ok 38 + inet 371 ms ok 39 + macaddr 228 ms ok 40 + macaddr8 344 ms ok 41 + multirangetypes 744 ms # parallel group (12 tests): comments misc_sanity unicode mvcc type_sanity expressions xid tstypes horology geometry opr_sanity regex ok 42 + geometry 235 ms ok 43 + horology 232 ms ok 44 + tstypes 202 ms ok 45 + regex 697 ms ok 46 + type_sanity 175 ms ok 47 + opr_sanity 560 ms ok 48 + misc_sanity 75 ms ok 49 + comments 69 ms ok 50 + expressions 165 ms ok 51 + unicode 103 ms ok 52 + xid 160 ms ok 53 + mvcc 107 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 54 + copy 861 ms ok 55 + copyselect 549 ms ok 56 + copydml 563 ms ok 57 + insert 1761 ms ok 58 + insert_conflict 1078 ms # parallel group (7 tests): create_function_c create_schema create_operator create_type create_misc create_procedure create_table ok 59 + create_function_c 51 ms ok 60 + create_misc 284 ms ok 61 + create_operator 271 ms ok 62 + create_procedure 286 ms ok 63 + create_table 710 ms ok 64 + create_type 276 ms ok 65 + create_schema 212 ms # parallel group (5 tests): index_including_gist index_including create_index_spgist create_view create_index ok 66 + create_index 2803 ms ok 67 + create_index_spgist 1312 ms ok 68 + create_view 1669 ms ok 69 + index_including 1004 ms ok 70 + index_including_gist 655 ms # parallel group (16 tests): create_cast errors infinite_recurse hash_func typed_table create_aggregate roleattributes select drop_if_exists create_function_sql create_am vacuum constraints updatable_views inherit triggers ok 71 + create_aggregate 665 ms ok 72 + create_function_sql 1001 ms ok 73 + create_cast 461 ms ok 74 + constraints 1831 ms ok 75 + triggers 5037 ms ok 76 + select 686 ms ok 77 + inherit 3887 ms ok 78 + typed_table 577 ms ok 79 + vacuum 1679 ms ok 80 + drop_if_exists 947 ms ok 81 + updatable_views 3632 ms ok 82 + roleattributes 660 ms ok 83 + create_am 1033 ms ok 84 + hash_func 512 ms ok 85 + errors 423 ms ok 86 + infinite_recurse 443 ms ok 87 - sanity_check 298 ms # parallel group (20 tests): select_distinct_on select_having select_implicit delete case select_into random namespace prepared_xacts transactions portals select_distinct union subselect hash_index arrays update aggregates btree_index join ok 88 + select_into 307 ms ok 89 + select_distinct 597 ms ok 90 + select_distinct_on 114 ms ok 91 + select_implicit 212 ms ok 92 + select_having 175 ms ok 93 + subselect 1069 ms ok 94 + union 823 ms ok 95 + case 256 ms ok 96 + join 3546 ms ok 97 + aggregates 2953 ms ok 98 + transactions 370 ms ok 99 + random 284 ms ok 100 + portals 420 ms ok 101 + arrays 1888 ms ok 102 + btree_index 3061 ms ok 103 + hash_index 1541 ms ok 104 + update 1884 ms ok 105 + delete 201 ms ok 106 + namespace 278 ms ok 107 + prepared_xacts 282 ms # parallel group (20 tests): init_privs drop_operator security_label password lock tablesample object_address replica_identity spgist gin collate gist groupingsets matview identity generated join_hash brin rowsecurity privileges ok 108 + brin 4900 ms ok 109 + gin 1983 ms ok 110 + gist 2377 ms ok 111 + spgist 1719 ms ok 112 + privileges 7723 ms ok 113 + init_privs 94 ms ok 114 + security_label 724 ms ok 115 + collate 2087 ms ok 116 + matview 2905 ms ok 117 + lock 827 ms ok 118 + replica_identity 1611 ms ok 119 + rowsecurity 4950 ms ok 120 + object_address 1587 ms ok 121 + tablesample 1379 ms ok 122 + groupingsets 2596 ms ok 123 + drop_operator 110 ms ok 124 + password 797 ms ok 125 + identity 3383 ms ok 126 + generated 3766 ms ok 127 + join_hash 4809 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 773 ms ok 129 + brin_multi 1903 ms # parallel group (18 tests): async tid dbsize incremental_sort collate.utf8 tidscan tidrangescan sysviews alter_operator tsrf misc misc_functions create_role alter_generic create_table_like collate.icu.utf8 merge without_overlaps ok 130 + create_table_like 1226 ms ok 131 + alter_generic 980 ms ok 132 + alter_operator 449 ms ok 133 + misc 565 ms ok 134 + async 84 ms ok 135 + dbsize 151 ms ok 136 + merge 1791 ms ok 137 + misc_functions 687 ms ok 138 + sysviews 322 ms ok 139 + tsrf 515 ms ok 140 + tid 104 ms ok 141 + tidscan 285 ms ok 142 + tidrangescan 302 ms ok 143 + collate.utf8 186 ms ok 144 + collate.icu.utf8 1738 ms ok 145 + incremental_sort 145 ms ok 146 + create_role 672 ms ok 147 + without_overlaps 1770 ms # parallel group (7 tests): collate.linux.utf8 collate.windows.win1252 amutils psql_crosstab rules psql stats_ext ok 148 + rules 1113 ms ok 149 + psql 1536 ms ok 150 + psql_crosstab 71 ms ok 151 + amutils 57 ms ok 152 + stats_ext 4410 ms ok 153 + collate.linux.utf8 42 ms ok 154 + collate.windows.win1252 41 ms ok 155 - select_parallel 2253 ms ok 156 - write_parallel 173 ms ok 157 - vacuum_parallel 176 ms # parallel group (2 tests): subscription publication ok 158 + publication 2741 ms ok 159 + subscription 656 ms # parallel group (17 tests): bitmapops advisory_lock combocid functional_deps portals_p2 xmlmap indirect_toast tsdicts select_views dependency equivclass guc tsearch cluster window foreign_data foreign_key ok 160 + select_views 697 ms ok 161 + portals_p2 661 ms ok 162 + foreign_key 6421 ms ok 163 + cluster 2115 ms ok 164 + dependency 716 ms ok 165 + guc 967 ms ok 166 + bitmapops 443 ms ok 167 + combocid 547 ms ok 168 + tsearch 2080 ms ok 169 + tsdicts 673 ms ok 170 + foreign_data 4634 ms ok 171 + window 2911 ms ok 172 + xmlmap 636 ms ok 173 + functional_deps 597 ms ok 174 + advisory_lock 449 ms ok 175 + indirect_toast 639 ms ok 176 + equivclass 754 ms # parallel group (9 tests): jsonpath_encoding jsonpath json_encoding sqljson_jsontable jsonb_jsonpath sqljson sqljson_queryfuncs json jsonb ok 177 + json 1392 ms ok 178 + jsonb 2479 ms ok 179 + json_encoding 300 ms ok 180 + jsonpath 185 ms ok 181 + jsonpath_encoding 157 ms ok 182 + jsonb_jsonpath 704 ms ok 183 + sqljson 1045 ms ok 184 + sqljson_queryfuncs 1249 ms ok 185 + sqljson_jsontable 498 ms # parallel group (18 tests): prepare limit returning conversion plancache largeobject temp sequence copy2 xml rowtypes truncate with polymorphism rangefuncs domain plpgsql alter_table ok 186 + plancache 1775 ms ok 187 + limit 1382 ms ok 188 + plpgsql 7435 ms ok 189 + copy2 3164 ms ok 190 + temp 2202 ms ok 191 + domain 4944 ms ok 192 + rangefuncs 4640 ms ok 193 + prepare 612 ms ok 194 + conversion 1559 ms ok 195 + truncate 3205 ms ok 196 + alter_table 11092 ms ok 197 + sequence 3114 ms ok 198 + polymorphism 4495 ms ok 199 + rowtypes 3171 ms ok 200 + returning 1352 ms ok 201 + largeobject 1804 ms ok 202 + with 3420 ms ok 203 + xml 3118 ms # parallel group (15 tests): reloptions hash_part explain predicate partition_info memoize compression partition_merge partition_split stats tuplesort partition_aggregate partition_join indexing partition_prune ok 204 + partition_merge 2357 ms ok 205 + partition_split 2764 ms not ok 206 + partition_join 3690 ms ok 207 + partition_prune 4817 ms ok 208 + reloptions 303 ms ok 209 + hash_part 446 ms ok 210 + indexing 3985 ms ok 211 + partition_aggregate 3440 ms ok 212 + partition_info 875 ms ok 213 + tuplesort 3194 ms ok 214 + explain 428 ms ok 215 + compression 1920 ms ok 216 + memoize 886 ms ok 217 + stats 3047 ms ok 218 + predicate 635 ms # parallel group (2 tests): oidjoins event_trigger ok 219 + oidjoins 2583 ms ok 220 + event_trigger 5396 ms ok 221 - event_trigger_login 266 ms ok 222 - fast_default 1323 ms ok 223 - tablespace 1290 ms 1..223 # 1 of 223 tests failed. # The differences that caused some tests to fail can be viewed in the file "/Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/regression.diffs". # A copy of the test summary that you see above is saved in the file "/Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/regression.out". === dumping /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/regression.diffs === diff -U3 /Users/admin/pgsql/src/test/regress/expected/partition_join.out /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/results/partition_join.out --- /Users/admin/pgsql/src/test/regress/expected/partition_join.out 2024-04-15 01:55:32 +++ /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/results/partition_join.out 2024-04-15 01:59:23 @@ -510,25 +510,30 @@ SELECT * FROM prt1 t1 JOIN LATERAL (SELECT * FROM prt1 t2 TABLESAMPLE SYSTEM (t1.a) REPEATABLE(t1.b)) s ON t1.a = s.a; - QUERY PLAN -------------------------------------------------------------- - Append - -> Nested Loop - -> Seq Scan on prt1_p1 t1_1 - -> Sample Scan on prt1_p1 t2_1 - Sampling: system (t1_1.a) REPEATABLE (t1_1.b) - Filter: (t1_1.a = a) - -> Nested Loop - -> Seq Scan on prt1_p2 t1_2 - -> Sample Scan on prt1_p2 t2_2 - Sampling: system (t1_2.a) REPEATABLE (t1_2.b) - Filter: (t1_2.a = a) - -> Nested Loop - -> Seq Scan on prt1_p3 t1_3 - -> Sample Scan on prt1_p3 t2_3 - Sampling: system (t1_3.a) REPEATABLE (t1_3.b) - Filter: (t1_3.a = a) -(16 rows) + QUERY PLAN +------------------------------------------------------------------------- + Gather + Workers Planned: 2 + -> Parallel Append + -> Nested Loop + -> Parallel Seq Scan on prt1_p1 t1_1 + -> Materialize + -> Sample Scan on prt1_p1 t2_1 + Sampling: system (t1_1.a) REPEATABLE (t1_1.b) + Filter: (t1_1.a = a) + -> Nested Loop + -> Parallel Seq Scan on prt1_p2 t1_2 + -> Materialize + -> Sample Scan on prt1_p2 t2_2 + Sampling: system (t1_2.a) REPEATABLE (t1_2.b) + Filter: (t1_2.a = a) + -> Nested Loop + -> Parallel Seq Scan on prt1_p3 t1_3 + -> Materialize + -> Sample Scan on prt1_p3 t2_3 + Sampling: system (t1_3.a) REPEATABLE (t1_3.b) + Filter: (t1_3.a = a) +(21 rows) -- lateral reference in scan's restriction clauses EXPLAIN (COSTS OFF) @@ -2041,35 +2046,42 @@ SELECT * FROM prt1_l t1 JOIN LATERAL (SELECT * FROM prt1_l t2 TABLESAMPLE SYSTEM (t1.a) REPEATABLE(t1.b)) s ON t1.a = s.a AND t1.b = s.b AND t1.c = s.c; - QUERY PLAN ----------------------------------------------------------------------------------------- - Append - -> Nested Loop - -> Seq Scan on prt1_l_p1 t1_1 - -> Sample Scan on prt1_l_p1 t2_1 - Sampling: system (t1_1.a) REPEATABLE (t1_1.b) - Filter: ((t1_1.a = a) AND (t1_1.b = b) AND ((t1_1.c)::text = (c)::text)) - -> Nested Loop - -> Seq Scan on prt1_l_p2_p1 t1_2 - -> Sample Scan on prt1_l_p2_p1 t2_2 - Sampling: system (t1_2.a) REPEATABLE (t1_2.b) - Filter: ((t1_2.a = a) AND (t1_2.b = b) AND ((t1_2.c)::text = (c)::text)) - -> Nested Loop - -> Seq Scan on prt1_l_p2_p2 t1_3 - -> Sample Scan on prt1_l_p2_p2 t2_3 - Sampling: system (t1_3.a) REPEATABLE (t1_3.b) - Filter: ((t1_3.a = a) AND (t1_3.b = b) AND ((t1_3.c)::text = (c)::text)) - -> Nested Loop - -> Seq Scan on prt1_l_p3_p1 t1_4 - -> Sample Scan on prt1_l_p3_p1 t2_4 - Sampling: system (t1_4.a) REPEATABLE (t1_4.b) - Filter: ((t1_4.a = a) AND (t1_4.b = b) AND ((t1_4.c)::text = (c)::text)) - -> Nested Loop - -> Seq Scan on prt1_l_p3_p2 t1_5 - -> Sample Scan on prt1_l_p3_p2 t2_5 - Sampling: system (t1_5.a) REPEATABLE (t1_5.b) - Filter: ((t1_5.a = a) AND (t1_5.b = b) AND ((t1_5.c)::text = (c)::text)) -(26 rows) + QUERY PLAN +---------------------------------------------------------------------------------------------------- + Gather + Workers Planned: 2 + -> Parallel Append + -> Nested Loop + -> Parallel Seq Scan on prt1_l_p1 t1_1 + -> Materialize + -> Sample Scan on prt1_l_p1 t2_1 + Sampling: system (t1_1.a) REPEATABLE (t1_1.b) + Filter: ((t1_1.a = a) AND (t1_1.b = b) AND ((t1_1.c)::text = (c)::text)) + -> Nested Loop + -> Parallel Seq Scan on prt1_l_p2_p2 t1_3 + -> Materialize + -> Sample Scan on prt1_l_p2_p2 t2_3 + Sampling: system (t1_3.a) REPEATABLE (t1_3.b) + Filter: ((t1_3.a = a) AND (t1_3.b = b) AND ((t1_3.c)::text = (c)::text)) + -> Nested Loop + -> Parallel Seq Scan on prt1_l_p2_p1 t1_2 + -> Materialize + -> Sample Scan on prt1_l_p2_p1 t2_2 + Sampling: system (t1_2.a) REPEATABLE (t1_2.b) + Filter: ((t1_2.a = a) AND (t1_2.b = b) AND ((t1_2.c)::text = (c)::text)) + -> Nested Loop + -> Parallel Seq Scan on prt1_l_p3_p1 t1_4 + -> Materialize + -> Sample Scan on prt1_l_p3_p1 t2_4 + Sampling: system (t1_4.a) REPEATABLE (t1_4.b) + Filter: ((t1_4.a = a) AND (t1_4.b = b) AND ((t1_4.c)::text = (c)::text)) + -> Nested Loop + -> Parallel Seq Scan on prt1_l_p3_p2 t1_5 + -> Materialize + -> Sample Scan on prt1_l_p3_p2 t2_5 + Sampling: system (t1_5.a) REPEATABLE (t1_5.b) + Filter: ((t1_5.a = a) AND (t1_5.b = b) AND ((t1_5.c)::text = (c)::text)) +(33 rows) -- partitionwise join with lateral reference in scan's restriction clauses EXPLAIN (COSTS OFF) === EOF === [01:59:35.173](80.534s) not ok 2 - regression tests pass [01:59:35.174](0.001s) # Failed test 'regression tests pass' # at /Users/admin/pgsql/src/test/recovery/t/027_stream_regress.pl line 95. [01:59:35.174](0.000s) # got: '256' # expected: '0' 1 1 1 2 1 1 1 9 5 5 4001 3 4 3 4 4 1 32 41 1 1 1 6 104 2 1 5 1006 1 2 5 17 -2 33 34 46 9 1 1 1 1 1 -1 1 1 -1 -32768 32767 1 1 Waiting for replication conn standby_1's replay_lsn to pass 0/145C6B28 on primary done # Running: pg_dumpall -f /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/primary.dump --no-sync -p 54656 --no-unlogged-table-data [01:59:44.206](9.032s) ok 3 - dump primary server # Running: pg_dumpall -f /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/standby.dump --no-sync -p 54657 [02:00:01.994](17.788s) ok 4 - dump standby server # Running: diff /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/primary.dump /Users/admin/pgsql/build/testrun/recovery/027_stream_regress/data/standby.dump [02:00:02.486](0.492s) ok 5 - compare primary and standby dumps [02:00:05.192](2.705s) ok 6 - check contents of pg_stat_statements on regression database ### Stopping node "standby_1" using mode fast # Running: pg_ctl -D /Users/admin/pgsql/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 /Users/admin/pgsql/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:00:05.437](0.246s) 1..6 [02:00:05.439](0.001s) # Looks like you failed 1 test of 6.