# Checking port 62147 # Found port 62147 Name: primary Data directory: /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/archives Connection string: port=62147 host=/tmp/FHcPVQYSMf Log file: /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/log/027_stream_regress_primary.log [03:08:29.901](0.013s) # initializing database system by copying initdb template # Running: cp -RPp /tmp/cirrus-ci-build/build/tmp_install/initdb-template /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata # Running: /tmp/cirrus-ci-build/build/src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/build/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/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/pgdata -l /tmp/cirrus-ci-build/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 15178 (standby_1,) [03:08:30.094](0.193s) ok 1 - physical slot created on primary # Taking pg_basebackup my_backup from node "primary" # Running: pg_basebackup -D /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_primary_data/backup/my_backup -h /tmp/FHcPVQYSMf -p 62147 --checkpoint fast --no-sync # Backup finished # Checking port 62148 # Found port 62148 Name: standby_1 Data directory: /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/pgdata Backup directory: /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/backup Archive directory: /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/archives Connection string: port=62148 host=/tmp/FHcPVQYSMf Log file: /tmp/cirrus-ci-build/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 /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/t_027_stream_regress_standby_1_data/pgdata -l /tmp/cirrus-ci-build/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 15220 # using postmaster on /tmp/FHcPVQYSMf, port 62147 ok 1 - test_setup 979 ms # parallel group (20 tests): oid text txid pg_lsn int2 regproc varchar uuid int4 char name money float4 float8 int8 boolean enum bit rangetypes numeric ok 2 + boolean 398 ms ok 3 + char 274 ms ok 4 + name 282 ms ok 5 + varchar 238 ms ok 6 + text 154 ms ok 7 + int2 183 ms ok 8 + int4 243 ms ok 9 + int8 385 ms ok 10 + oid 151 ms ok 11 + float4 344 ms ok 12 + float8 364 ms ok 13 + bit 638 ms ok 14 + numeric 1515 ms ok 15 + txid 168 ms ok 16 + uuid 238 ms ok 17 + enum 628 ms ok 18 + money 286 ms ok 19 + rangetypes 1364 ms ok 20 + pg_lsn 173 ms ok 21 + regproc 229 ms # parallel group (20 tests): md5 lseg time circle path line point macaddr macaddr8 date numerology inet timetz timestamp interval polygon timestamptz strings box multirangetypes ok 22 + strings 1059 ms ok 23 + md5 53 ms ok 24 + numerology 661 ms ok 25 + point 639 ms ok 26 + lseg 64 ms ok 27 + line 617 ms ok 28 + box 1061 ms ok 29 + path 552 ms ok 30 + polygon 1025 ms ok 31 + circle 497 ms ok 32 + date 658 ms ok 33 + time 431 ms ok 34 + timetz 713 ms ok 35 + timestamp 752 ms ok 36 + timestamptz 1050 ms ok 37 + interval 864 ms ok 38 + inet 690 ms ok 39 + macaddr 639 ms ok 40 + macaddr8 650 ms ok 41 + multirangetypes 1400 ms # parallel group (12 tests): misc_sanity unicode comments mvcc expressions xid type_sanity tstypes horology geometry regex opr_sanity ok 42 + geometry 251 ms ok 43 + horology 238 ms ok 44 + tstypes 201 ms ok 45 + regex 276 ms ok 46 + type_sanity 175 ms ok 47 + opr_sanity 384 ms ok 48 + misc_sanity 34 ms ok 49 + comments 69 ms ok 50 + expressions 163 ms ok 51 + unicode 36 ms ok 52 + xid 166 ms ok 53 + mvcc 88 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 54 + copy 158 ms ok 55 + copyselect 74 ms ok 56 + copydml 110 ms ok 57 + insert 775 ms ok 58 + insert_conflict 283 ms # parallel group (7 tests): create_function_c create_operator create_schema create_procedure create_misc create_type create_table ok 59 + create_function_c 15 ms ok 60 + create_misc 115 ms ok 61 + create_operator 80 ms ok 62 + create_procedure 113 ms ok 63 + create_table 648 ms ok 64 + create_type 114 ms ok 65 + create_schema 110 ms # parallel group (5 tests): index_including_gist index_including create_view create_index_spgist create_index ok 66 + create_index 2416 ms ok 67 + create_index_spgist 1931 ms ok 68 + create_view 1844 ms ok 69 + index_including 1442 ms ok 70 + index_including_gist 1407 ms # parallel group (16 tests): create_cast hash_func create_aggregate roleattributes errors infinite_recurse select typed_table drop_if_exists create_am create_function_sql vacuum constraints updatable_views inherit triggers ok 71 + create_aggregate 211 ms ok 72 + create_function_sql 491 ms ok 73 + create_cast 139 ms ok 74 + constraints 1001 ms ok 75 + triggers 3082 ms ok 76 + select 292 ms ok 77 + inherit 2645 ms ok 78 + typed_table 406 ms ok 79 + vacuum 752 ms ok 80 + drop_if_exists 412 ms ok 81 + updatable_views 2419 ms ok 82 + roleattributes 256 ms ok 83 + create_am 448 ms ok 84 + hash_func 182 ms ok 85 + errors 259 ms ok 86 + infinite_recurse 282 ms ok 87 - sanity_check 2039 ms # parallel group (20 tests): select_distinct_on select_having random delete select_implicit case namespace prepared_xacts select_distinct select_into union portals transactions arrays subselect update hash_index aggregates btree_index join ok 88 + select_into 593 ms ok 89 + select_distinct 515 ms ok 90 + select_distinct_on 41 ms ok 91 + select_implicit 368 ms ok 92 + select_having 91 ms ok 93 + subselect 1168 ms ok 94 + union 607 ms ok 95 + case 373 ms ok 96 + join 2498 ms ok 97 + aggregates 2369 ms ok 98 + transactions 1074 ms ok 99 + random 117 ms ok 100 + portals 737 ms ok 101 + arrays 1144 ms ok 102 + btree_index 2374 ms ok 103 + hash_index 1643 ms ok 104 + update 1619 ms ok 105 + delete 325 ms ok 106 + namespace 378 ms ok 107 + prepared_xacts 418 ms # parallel group (20 tests): init_privs drop_operator password tablesample security_label lock object_address groupingsets collate replica_identity identity matview spgist gin gist generated rowsecurity brin join_hash privileges ok 108 + brin 2866 ms ok 109 + gin 2418 ms ok 110 + gist 2478 ms ok 111 + spgist 2258 ms ok 112 + privileges 3125 ms ok 113 + init_privs 65 ms ok 114 + security_label 279 ms ok 115 + collate 1775 ms ok 116 + matview 2090 ms ok 117 + lock 1164 ms ok 118 + replica_identity 1854 ms ok 119 + rowsecurity 2837 ms ok 120 + object_address 1200 ms ok 121 + tablesample 274 ms ok 122 + groupingsets 1482 ms ok 123 + drop_operator 139 ms ok 124 + password 259 ms ok 125 + identity 2086 ms ok 126 + generated 2648 ms ok 127 + join_hash 2866 ms # parallel group (2 tests): brin_bloom brin_multi ok 128 + brin_bloom 122 ms ok 129 + brin_multi 601 ms # parallel group (18 tests): async dbsize sysviews tidrangescan tidscan tsrf tid alter_operator create_role misc incremental_sort misc_functions without_overlaps alter_generic merge collate.icu.utf8 create_table_like incremental_matview ok 130 + create_table_like 938 ms ok 131 + alter_generic 608 ms ok 132 + alter_operator 235 ms ok 133 + misc 369 ms ok 134 + async 64 ms ok 135 + dbsize 70 ms ok 136 + merge 891 ms ok 137 + misc_functions 440 ms ok 138 + sysviews 107 ms ok 139 + tsrf 204 ms ok 140 + tid 206 ms ok 141 + tidscan 159 ms ok 142 + tidrangescan 132 ms ok 143 + collate.icu.utf8 919 ms ok 144 + incremental_sort 389 ms ok 145 + create_role 313 ms ok 146 + without_overlaps 580 ms not ok 147 + incremental_matview 939 ms # parallel group (7 tests): collate.linux.utf8 collate.windows.win1252 amutils psql_crosstab rules psql stats_ext ok 148 + rules 673 ms ok 149 + psql 726 ms ok 150 + psql_crosstab 49 ms ok 151 + amutils 34 ms ok 152 + stats_ext 1574 ms ok 153 + collate.linux.utf8 14 ms ok 154 + collate.windows.win1252 15 ms ok 155 - select_parallel 555 ms ok 156 - write_parallel 72 ms ok 157 - vacuum_parallel 84 ms # parallel group (2 tests): subscription publication ok 158 + publication 1027 ms ok 159 + subscription 64 ms # parallel group (17 tests): advisory_lock portals_p2 combocid xmlmap select_views tsdicts functional_deps guc equivclass dependency indirect_toast bitmapops window tsearch cluster foreign_data foreign_key ok 160 + select_views 351 ms ok 161 + portals_p2 266 ms ok 162 + foreign_key 3012 ms ok 163 + cluster 866 ms ok 164 + dependency 468 ms ok 165 + guc 396 ms ok 166 + bitmapops 517 ms ok 167 + combocid 271 ms ok 168 + tsearch 795 ms ok 169 + tsdicts 353 ms ok 170 + foreign_data 1541 ms ok 171 + window 773 ms ok 172 + xmlmap 313 ms ok 173 + functional_deps 392 ms ok 174 + advisory_lock 146 ms ok 175 + indirect_toast 478 ms ok 176 + equivclass 461 ms # parallel group (7 tests): jsonpath_encoding json_encoding jsonpath sqljson jsonb_jsonpath json jsonb ok 177 + json 323 ms ok 178 + jsonb 572 ms ok 179 + json_encoding 25 ms ok 180 + jsonpath 69 ms ok 181 + jsonpath_encoding 16 ms ok 182 + jsonb_jsonpath 282 ms ok 183 + sqljson 195 ms # parallel group (18 tests): prepare limit conversion returning plancache rowtypes with temp copy2 truncate largeobject sequence xml polymorphism rangefuncs domain plpgsql alter_table ok 184 + plancache 595 ms ok 185 + limit 382 ms ok 186 + plpgsql 2131 ms ok 187 + copy2 973 ms ok 188 + temp 941 ms ok 189 + domain 1294 ms ok 190 + rangefuncs 1245 ms ok 191 + prepare 142 ms ok 192 + conversion 452 ms ok 193 + truncate 1036 ms ok 194 + alter_table 3462 ms ok 195 + sequence 1172 ms ok 196 + polymorphism 1184 ms ok 197 + rowtypes 903 ms ok 198 + returning 538 ms ok 199 + largeobject 1136 ms ok 200 + with 930 ms ok 201 + xml 1176 ms # parallel group (13 tests): predicate hash_part reloptions explain partition_info memoize compression tuplesort partition_aggregate stats partition_join partition_prune indexing ok 202 + partition_join 1764 ms ok 203 + partition_prune 1783 ms ok 204 + reloptions 246 ms ok 205 + hash_part 236 ms ok 206 + indexing 1939 ms ok 207 + partition_aggregate 1064 ms ok 208 + partition_info 416 ms ok 209 + tuplesort 1031 ms ok 210 + explain 385 ms ok 211 + compression 694 ms ok 212 + memoize 460 ms ok 213 + stats 1176 ms ok 214 + predicate 89 ms # parallel group (2 tests): oidjoins event_trigger ok 215 + oidjoins 454 ms ok 216 + event_trigger 498 ms ok 217 - event_trigger_login 39 ms ok 218 - fast_default 256 ms ok 219 - tablespace 575 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/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/testrun/recovery/027_stream_regress/data/regression.out". === dumping /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/regression.diffs === diff -U3 /tmp/cirrus-ci-build/src/test/regress/expected/incremental_matview.out /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/results/incremental_matview.out --- /tmp/cirrus-ci-build/src/test/regress/expected/incremental_matview.out 2024-03-04 03:05:18.960394000 +0000 +++ /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/results/incremental_matview.out 2024-03-04 03:08:51.389733000 +0000 @@ -14,6 +14,7 @@ (4,104); CREATE INCREMENTAL MATERIALIZED VIEW mv_ivm_1 AS SELECT i,j,k FROM mv_base_a a INNER JOIN mv_base_b b USING(i) WITH NO DATA; SELECT * FROM mv_ivm_1 ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: materialized view "mv_ivm_1" has not been populated HINT: Use the REFRESH MATERIALIZED VIEW command. REFRESH MATERIALIZED VIEW mv_ivm_1; @@ -21,6 +22,7 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT * FROM mv_ivm_1 ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | j | k ---+----+----- 1 | 10 | 101 @@ -60,7 +62,9 @@ -- immediate maintenance BEGIN; INSERT INTO mv_base_b VALUES(5,105); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_1 ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | j | k ---+----+----- 1 | 10 | 101 @@ -71,7 +75,10 @@ (5 rows) UPDATE mv_base_a SET j = 0 WHERE i = 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_1 ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | j | k ---+----+----- 1 | 0 | 101 @@ -82,7 +89,9 @@ (5 rows) DELETE FROM mv_base_b WHERE (i,k) = (5,105); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_1 ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | j | k ---+----+----- 1 | 0 | 101 @@ -93,6 +102,7 @@ ROLLBACK; SELECT * FROM mv_ivm_1 ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | j | k ---+----+----- 1 | 10 | 101 @@ -121,6 +131,7 @@ BEGIN; TRUNCATE mv_base_a; SELECT * FROM mv_ivm_1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | j | k ---+---+--- (0 rows) @@ -129,6 +140,7 @@ BEGIN; TRUNCATE mv_base_b; SELECT * FROM mv_ivm_1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | j | k ---+---+--- (0 rows) @@ -156,7 +168,10 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv_ivm_distinct AS SELECT DISTINCT j FROM mv_base_a; NOTICE: created index "mv_ivm_distinct_index" on materialized view "mv_ivm_distinct" INSERT INTO mv_base_a VALUES(6,20); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_duplicate ORDER BY 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree j ---- 10 @@ -168,6 +183,7 @@ (6 rows) SELECT * FROM mv_ivm_distinct ORDER BY 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree j ---- 10 @@ -178,7 +194,11 @@ (5 rows) DELETE FROM mv_base_a WHERE (i,j) = (2,20); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_duplicate ORDER BY 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree j ---- 10 @@ -189,6 +209,7 @@ (5 rows) SELECT * FROM mv_ivm_distinct ORDER BY 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree j ---- 10 @@ -204,6 +225,7 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv_ivm_agg AS SELECT i, SUM(j), COUNT(i), AVG(j) FROM mv_base_a GROUP BY i; NOTICE: created index "mv_ivm_agg_index" on materialized view "mv_ivm_agg" SELECT * FROM mv_ivm_agg ORDER BY 1,2,3,4; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count | avg ---+-----+-------+--------------------- 1 | 10 | 1 | 10.0000000000000000 @@ -214,7 +236,10 @@ (5 rows) INSERT INTO mv_base_a VALUES(2,100); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_agg ORDER BY 1,2,3,4; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count | avg ---+-----+-------+--------------------- 1 | 10 | 1 | 10.0000000000000000 @@ -225,7 +250,12 @@ (5 rows) UPDATE mv_base_a SET j = 200 WHERE (i,j) = (2,100); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_agg ORDER BY 1,2,3,4; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count | avg ---+-----+-------+---------------------- 1 | 10 | 1 | 10.0000000000000000 @@ -236,7 +266,10 @@ (5 rows) DELETE FROM mv_base_a WHERE (i,j) = (2,200); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_agg ORDER BY 1,2,3,4; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count | avg ---+-----+-------+--------------------- 1 | 10 | 1 | 10.0000000000000000 @@ -252,6 +285,7 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv_ivm_agg AS SELECT i, SUM(j), COUNT(*) FROM mv_base_a GROUP BY i; NOTICE: created index "mv_ivm_agg_index" on materialized view "mv_ivm_agg" SELECT * FROM mv_ivm_agg ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count ---+-----+------- 1 | 10 | 1 @@ -262,7 +296,10 @@ (5 rows) INSERT INTO mv_base_a VALUES(2,100); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_agg ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count ---+-----+------- 1 | 10 | 1 @@ -279,6 +316,7 @@ NOTICE: created index "mv_ivm_agg_index" on materialized view "mv_ivm_agg" TRUNCATE mv_base_a; SELECT sum, count FROM mv_ivm_agg; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree sum | count -----+------- (0 rows) @@ -296,20 +334,26 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT * FROM mv_ivm_group ORDER BY 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree sum | count | avg -----+-------+--------------------- 150 | 5 | 30.0000000000000000 (1 row) INSERT INTO mv_base_a VALUES(6,60); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_group ORDER BY 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree sum | count | avg -----+-------+--------------------- 210 | 6 | 35.0000000000000000 (1 row) DELETE FROM mv_base_a; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_group ORDER BY 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree sum | count | avg -----+-------+----- | 0 | @@ -324,6 +368,7 @@ HINT: Create an index on the materialized view for efficient incremental maintenance. TRUNCATE mv_base_a; SELECT sum, count, avg FROM mv_ivm_group; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree sum | count | avg -----+-------+----- | 0 | @@ -341,6 +386,7 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv_ivm_avg_bug AS SELECT i, SUM(j), COUNT(j), AVG(j) FROM mv_base_A GROUP BY i; NOTICE: created index "mv_ivm_avg_bug_index" on materialized view "mv_ivm_avg_bug" SELECT * FROM mv_ivm_avg_bug ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count | avg ---+-----+-------+--------------------- 1 | 10 | 1 | 10.0000000000000000 @@ -355,7 +401,10 @@ (1,0), (2,30), (2,30); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_avg_bug ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count | avg ---+-----+-------+--------------------- 1 | 10 | 3 | 3.3333333333333333 @@ -366,8 +415,13 @@ (5 rows) DELETE FROM mv_base_a WHERE (i,j) = (1,0); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree DELETE FROM mv_base_a WHERE (i,j) = (2,30); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_avg_bug ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum | count | avg ---+-----+-------+--------------------- 1 | 10 | 1 | 10.0000000000000000 @@ -383,6 +437,7 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv_ivm_min_max AS SELECT i, MIN(j), MAX(j) FROM mv_base_a GROUP BY i; NOTICE: created index "mv_ivm_min_max_index" on materialized view "mv_ivm_min_max" SELECT * FROM mv_ivm_min_max ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | min | max ---+-----+----- 1 | 10 | 10 @@ -398,7 +453,10 @@ (3,31), (3,32), (4,41), (4,42), (5,51), (5,52); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_min_max ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | min | max ---+-----+----- 1 | 10 | 12 @@ -409,7 +467,11 @@ (5 rows) DELETE FROM mv_base_a WHERE (i,j) IN ((1,10), (2,21), (3,32)); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_min_max ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | min | max ---+-----+----- 1 | 11 | 12 @@ -427,6 +489,7 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT * FROM mv_ivm_min_max; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree min | max -----+----- 10 | 50 @@ -434,21 +497,29 @@ INSERT INTO mv_base_a VALUES (0,0), (6,60), (7,70); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_min_max; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree min | max -----+----- 0 | 70 (1 row) DELETE FROM mv_base_a WHERE (i,j) IN ((0,0), (7,70)); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_min_max; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree min | max -----+----- 10 | 60 (1 row) DELETE FROM mv_base_a; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_min_max; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree min | max -----+----- | @@ -462,6 +533,7 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT * FROM mv_ivm_min; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree min ----- 10 @@ -472,7 +544,11 @@ CREATE TABLE myschema.mv_base_a (j int); INSERT INTO myschema.mv_base_a VALUES (1); DELETE FROM mv_base_a WHERE (i,j) = (1,10); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_min; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree min ----- 20 @@ -480,7 +556,11 @@ SET search_path TO myschema,public,pg_catalog; DELETE FROM public.mv_base_a WHERE (i,j) = (2,20); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_min; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree min ----- 30 @@ -492,9 +572,18 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv_ivm_agg(a) AS SELECT i, SUM(j) FROM mv_base_a GROUP BY i; NOTICE: created index "mv_ivm_agg_index" on materialized view "mv_ivm_agg" INSERT INTO mv_base_a VALUES (1,100), (2,200), (3,300); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree UPDATE mv_base_a SET j = 2000 WHERE (i,j) = (2,20); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree DELETE FROM mv_base_a WHERE (i,j) = (3,30); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_agg ORDER BY 1,2; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree a | sum ---+------ 1 | 110 @@ -509,9 +598,18 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv_ivm_agg(a,b) AS SELECT i, SUM(j) FROM mv_base_a GROUP BY i; NOTICE: created index "mv_ivm_agg_index" on materialized view "mv_ivm_agg" INSERT INTO mv_base_a VALUES (1,100), (2,200), (3,300); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree UPDATE mv_base_a SET j = 2000 WHERE (i,j) = (2,20); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree DELETE FROM mv_base_a WHERE (i,j) = (3,30); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ivm_agg ORDER BY 1,2; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree a | b ---+------ 1 | 110 @@ -536,6 +634,7 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT * FROM mv_self ORDER BY v1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree v1 | v2 ----+---- 10 | 10 @@ -544,9 +643,16 @@ (3 rows) INSERT INTO base_t VALUES (4,40); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree DELETE FROM base_t WHERE i = 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree UPDATE base_t SET v = v*10 WHERE i=2; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_self ORDER BY v1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree v1 | v2 -----+----- 30 | 30 @@ -560,12 +666,17 @@ upd_t AS (UPDATE base_t SET v = v + 100 RETURNING 1), dlt_t AS (DELETE FROM base_t WHERE i IN (4,5) RETURNING 1) SELECT NULL; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ?column? ---------- (1 row) SELECT * FROM mv_self ORDER BY v1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree v1 | v2 -----+----- 50 | 50 @@ -577,9 +688,13 @@ --- with sub-transactions SAVEPOINT p1; INSERT INTO base_t VALUES (7,70); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree RELEASE SAVEPOINT p1; INSERT INTO base_t VALUES (7,77); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_self ORDER BY v1, v2; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree v1 | v2 -----+----- 50 | 50 @@ -605,6 +720,7 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT * FROM mv ORDER BY v1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree v1 | v2 ----+----- 10 | 100 @@ -619,12 +735,17 @@ upd_r AS (UPDATE base_r SET v = v + 1000 WHERE i = 2 RETURNING 1), dlt_s AS (DELETE FROM base_s WHERE i = 3 RETURNING 1) SELECT NULL; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ?column? ---------- (1 row) SELECT * FROM mv ORDER BY v1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree v1 | v2 ------+----- 10 | 100 @@ -644,6 +765,7 @@ SELECT ri1.i, ri2.i FROM ri1 JOIN ri2 USING(i); NOTICE: created index "mv_ri_index" on materialized view "mv_ri" SELECT * FROM mv_ri ORDER BY i1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i1 | i2 ----+---- 1 | 1 @@ -652,8 +774,12 @@ (3 rows) UPDATE ri1 SET i=10 where i=1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree DELETE FROM ri1 WHERE i=2; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_ri ORDER BY i2; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i1 | i2 ----+---- 3 | 3 @@ -670,6 +796,7 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | v ---+---- 1 | 10 @@ -677,7 +804,10 @@ (2 rows) UPDATE base_t SET v = 20 WHERE i = 2; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | v ---+---- 1 | 10 @@ -692,12 +822,15 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i --- (0 rows) INSERT INTO base_t VALUES (1),(NULL); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i --- 1 @@ -711,6 +844,7 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv AS SELECT i, sum(v) FROM base_t GROUP BY i; NOTICE: created index "mv_index" on materialized view "mv" SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum ---+----- 1 | 30 @@ -718,7 +852,10 @@ (2 rows) UPDATE base_t SET v = v * 10; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | sum ---+----- 1 | 300 @@ -732,27 +869,35 @@ CREATE INCREMENTAL MATERIALIZED VIEW mv AS SELECT i, min(v), max(v) FROM base_t GROUP BY i; NOTICE: created index "mv_index" on materialized view "mv" SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | min | max ---+-----+----- | 1 | 5 (1 row) DELETE FROM base_t WHERE v = 1; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | min | max ---+-----+----- | 2 | 5 (1 row) DELETE FROM base_t WHERE v = 3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | min | max ---+-----+----- | 2 | 5 (1 row) DELETE FROM base_t WHERE v = 5; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv ORDER BY i; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree i | min | max ---+-----+----- | 2 | 4 @@ -802,7 +947,9 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. INSERT INTO t_mytype VALUES ('1'::mytype); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT * FROM mv_mytype; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree x --- 1 @@ -910,7 +1057,9 @@ DROP USER IF EXISTS ivm_user; NOTICE: role "ivm_user" does not exist, skipping CREATE USER ivm_admin; +WARNING: roles created by regression test cases should have names starting with "regress_" CREATE USER ivm_user; +WARNING: roles created by regression test cases should have names starting with "regress_" --- create a table with RLS SET SESSION AUTHORIZATION ivm_admin; CREATE TABLE rls_tbl(id int, data text, owner name); @@ -937,6 +1086,7 @@ DETAIL: This target list does not have all the primary key columns, or this view does not contain GROUP BY or DISTINCT clause. HINT: Create an index on the materialized view for efficient incremental maintenance. SELECT id, data, owner FROM ivm_rls ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree id | data | owner ----+------+---------- 1 | foo | ivm_user @@ -947,7 +1097,9 @@ INSERT INTO rls_tbl VALUES (3,'baz','ivm_user'), (4,'qux','postgres'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree SELECT id, data, owner FROM ivm_rls ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree id | data | owner ----+------+---------- 1 | foo | ivm_user @@ -960,10 +1112,13 @@ u AS (UPDATE rls_tbl SET owner = 'postgres' WHERE id = 1), u2 AS (UPDATE rls_tbl SET owner = 'ivm_user' WHERE id = 2) SELECT; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree -- (1 row) SELECT id, data, owner FROM ivm_rls ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree id | data | owner ----+-------+---------- 2 | bar | ivm_user @@ -982,10 +1137,17 @@ x AS (UPDATE rls_tbl SET data = data || '_2' where id in (3,4)), y AS (UPDATE num_tbl SET num = num || '_2' where id in (3,4)) SELECT; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree -- (1 row) SELECT * FROM ivm_rls2 ORDER BY 1,2,3; +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree id | data | owner | num ----+-------+----------+--------- 2 | bar | ivm_user | two === EOF === [03:09:05.217](35.123s) not ok 2 - regression tests pass [03:09:05.217](0.000s) # Failed test 'regression tests pass' # at /tmp/cirrus-ci-build/src/test/recovery/t/027_stream_regress.pl line 95. [03:09:05.217](0.000s) # got: '256' # expected: '0' 1 1 1 2 1 1 1 9 5 5 3 4 3 4001 4 4 1 32 1 1 1 6 104 2 1 5 1006 1 2 1 41 5 17 -2 1 33 34 1 1 1 1 -1 1 1 -1 -32768 32767 46 9 1 Waiting for replication conn standby_1's replay_lsn to pass 0/142569A8 on primary done # Running: pg_dumpall -f /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/primary.dump --no-sync -p 62147 --no-unlogged-table-data [03:09:06.969](1.751s) ok 3 - dump primary server # Running: pg_dumpall -f /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/standby.dump --no-sync -p 62148 [03:09:08.130](1.161s) ok 4 - dump standby server # Running: diff /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/primary.dump /tmp/cirrus-ci-build/build/testrun/recovery/027_stream_regress/data/standby.dump [03:09:08.143](0.013s) ok 5 - compare primary and standby dumps [03:09:08.259](0.116s) 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/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/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" [03:09:08.465](0.207s) 1..6 [03:09:08.467](0.002s) # Looks like you failed 1 test of 6.