Skip to content

Commit 65fc7b3

Browse files
committed
Fix regression test's expected results
Forgotten to commit
1 parent bf467c2 commit 65fc7b3

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

expected/pg_ivm.out

+22-13
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
2020
HINT: Create an index on the immv for efficient incremental maintenance.
2121
create_immv
2222
-------------
23-
23+
4
2424
(1 row)
2525

2626
SELECT * FROM mv_ivm_1 ORDER BY 1,2,3;
@@ -86,7 +86,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
8686
HINT: Create an index on the immv for efficient incremental maintenance.
8787
create_immv
8888
-------------
89-
89+
1
9090
(1 row)
9191

9292
SELECT create_immv('mv_ivm_no_tbl', 'SELECT 1');
@@ -95,7 +95,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
9595
HINT: Create an index on the immv for efficient incremental maintenance.
9696
create_immv
9797
-------------
98-
98+
1
9999
(1 row)
100100

101101
ROLLBACK;
@@ -107,14 +107,14 @@ DETAIL: This target list does not have all the primary key columns, or this vie
107107
HINT: Create an index on the immv for efficient incremental maintenance.
108108
create_immv
109109
-------------
110-
110+
5
111111
(1 row)
112112

113113
SELECT create_immv('mv_ivm_distinct', 'SELECT DISTINCT j FROM mv_base_a');
114114
NOTICE: created index "mv_ivm_distinct_index" on immv "mv_ivm_distinct"
115115
create_immv
116116
-------------
117-
117+
5
118118
(1 row)
119119

120120
INSERT INTO mv_base_a VALUES(6,20);
@@ -175,7 +175,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
175175
HINT: Create an index on the immv for efficient incremental maintenance.
176176
create_immv
177177
-------------
178-
178+
3
179179
(1 row)
180180

181181
SELECT * FROM mv_self ORDER BY v1;
@@ -230,7 +230,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
230230
HINT: Create an index on the immv for efficient incremental maintenance.
231231
create_immv
232232
-------------
233-
233+
3
234234
(1 row)
235235

236236
SELECT * FROM mv ORDER BY v1;
@@ -273,7 +273,7 @@ SELECT create_immv('mv_ri(i1, i2)', 'SELECT ri1.i, ri2.i FROM ri1 JOIN ri2 USING
273273
NOTICE: created index "mv_ri_index" on immv "mv_ri"
274274
create_immv
275275
-------------
276-
276+
3
277277
(1 row)
278278

279279
SELECT * FROM mv_ri ORDER BY i1;
@@ -304,7 +304,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
304304
HINT: Create an index on the immv for efficient incremental maintenance.
305305
create_immv
306306
-------------
307-
307+
2
308308
(1 row)
309309

310310
SELECT * FROM mv ORDER BY i;
@@ -331,7 +331,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
331331
HINT: Create an index on the immv for efficient incremental maintenance.
332332
create_immv
333333
-------------
334-
334+
0
335335
(1 row)
336336

337337
SELECT * FROM mv ORDER BY i;
@@ -392,7 +392,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
392392
HINT: Create an index on the immv for efficient incremental maintenance.
393393
create_immv
394394
-------------
395-
395+
0
396396
(1 row)
397397

398398
INSERT INTO t_mytype VALUES ('1'::mytype);
@@ -510,7 +510,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
510510
HINT: Create an index on the immv for efficient incremental maintenance.
511511
create_immv
512512
-------------
513-
513+
1
514514
(1 row)
515515

516516
SELECT id, data, owner FROM ivm_rls ORDER BY 1,2,3;
@@ -535,7 +535,7 @@ DETAIL: This target list does not have all the primary key columns, or this vie
535535
HINT: Create an index on the immv for efficient incremental maintenance.
536536
create_immv
537537
-------------
538-
538+
2
539539
(1 row)
540540

541541
RESET SESSION AUTHORIZATION;
@@ -560,6 +560,15 @@ drop cascades to table ivm_rls2
560560
DROP TABLE num_tbl CASCADE;
561561
DROP USER ivm_user;
562562
DROP USER ivm_admin;
563+
-- prevent IMMV chanages
564+
INSERT INTO mv_ivm_1 VALUES(1,1,1);
565+
ERROR: cannot change materialized view "mv_ivm_1"
566+
UPDATE mv_ivm_1 SET k = 1 WHERE i = 1;
567+
ERROR: cannot change materialized view "mv_ivm_1"
568+
DELETE FROM mv_ivm_1;
569+
ERROR: cannot change materialized view "mv_ivm_1"
570+
TRUNCATE mv_ivm_1;
571+
ERROR: cannot change materialized view "mv_ivm_1"
563572
DROP TABLE mv_base_b CASCADE;
564573
NOTICE: drop cascades to 3 other objects
565574
DETAIL: drop cascades to table mv_ivm_1

0 commit comments

Comments
 (0)