Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit56064d5

Browse files
committed
Remove useless and rather expensive stanza in matview regression test.
This removes a test case added by commitb69ec7c, which was intendedto exercise a corner case involving the rule used at that time thatmaterialized views were unpopulated iff they had physical size zero.We got rid of that rule very shortly later, in commit1d6c72a, butkept the test case. However, because the case now asks what VACUUMwill do to a zero-sized physical file, it would be pretty surprisingif the answer were ever anything but "nothing" ... and if things wereindeed that broken, surely we'd find it out from other tests. Sincethe test involves a table that's fairly large by regression-teststandards (100K rows), it's quite slow to run. Dropping it shouldsave some buildfarm cycles, so let's do that.Discussion:https://postgr.es/m/32386.1493831320@sss.pgh.pa.us
1 parentc521d5a commit56064d5

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

‎src/test/regress/expected/matview.out

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -382,26 +382,6 @@ NOTICE: drop cascades to 3 other objects
382382
DETAIL: drop cascades to view mvtest_vt2
383383
drop cascades to materialized view mv_test2
384384
drop cascades to materialized view mv_test3
385-
-- test that vacuum does not make empty matview look unpopulated
386-
CREATE TABLE mvtest_huge (i int);
387-
INSERT INTO mvtest_huge VALUES (generate_series(1,100000));
388-
CREATE MATERIALIZED VIEW mvtest_hugeview AS SELECT * FROM mvtest_huge WHERE i % 2 = 0;
389-
CREATE INDEX mvtest_hugeviewidx ON mvtest_hugeview (i);
390-
DELETE FROM mvtest_huge;
391-
REFRESH MATERIALIZED VIEW mvtest_hugeview;
392-
SELECT * FROM mvtest_hugeview WHERE i < 10;
393-
i
394-
---
395-
(0 rows)
396-
397-
VACUUM ANALYZE mvtest_hugeview;
398-
SELECT * FROM mvtest_hugeview WHERE i < 10;
399-
i
400-
---
401-
(0 rows)
402-
403-
DROP TABLE mvtest_huge CASCADE;
404-
NOTICE: drop cascades to materialized view mvtest_hugeview
405385
-- test that duplicate values on unique index prevent refresh
406386
CREATE TABLE mvtest_foo(a, b) AS VALUES(1, 10);
407387
CREATE MATERIALIZED VIEW mvtest_mv AS SELECT * FROM mvtest_foo;

‎src/test/regress/sql/matview.sql

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,6 @@ SELECT relispopulated FROM pg_class WHERE oid = 'mv_test3'::regclass;
122122

123123
DROPVIEW mvtest_vt1 CASCADE;
124124

125-
-- test that vacuum does not make empty matview look unpopulated
126-
CREATETABLEmvtest_huge (iint);
127-
INSERT INTO mvtest_hugeVALUES (generate_series(1,100000));
128-
CREATE MATERIALIZED VIEW mvtest_hugeviewASSELECT*FROM mvtest_hugeWHERE i %2=0;
129-
CREATEINDEXmvtest_hugeviewidxON mvtest_hugeview (i);
130-
DELETEFROM mvtest_huge;
131-
REFRESH MATERIALIZED VIEW mvtest_hugeview;
132-
SELECT*FROM mvtest_hugeviewWHERE i<10;
133-
VACUUM ANALYZE mvtest_hugeview;
134-
SELECT*FROM mvtest_hugeviewWHERE i<10;
135-
DROPTABLE mvtest_huge CASCADE;
136-
137125
-- test that duplicate values on unique index prevent refresh
138126
CREATETABLEmvtest_foo(a, b)ASVALUES(1,10);
139127
CREATE MATERIALIZED VIEW mvtest_mvASSELECT*FROM mvtest_foo;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp