diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-05-03 19:37:01 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-05-03 19:37:01 -0400 |
commit | 2ffe80c06ab353f29a51df25f6db13e7ddefb16f (patch) | |
tree | a460bcf11fff060a3b0efb5092289d2d9b13aa20 /src | |
parent | 724cd4f063a84af65dd02b18c9a019391d2c3494 (diff) | |
download | postgresql-2ffe80c06ab353f29a51df25f6db13e7ddefb16f.tar.gz postgresql-2ffe80c06ab353f29a51df25f6db13e7ddefb16f.zip |
Remove useless and rather expensive stanza in matview regression test.
This removes a test case added by commit b69ec7cc9, which was intended
to exercise a corner case involving the rule used at that time that
materialized views were unpopulated iff they had physical size zero.
We got rid of that rule very shortly later, in commit 1d6c72a55, but
kept the test case. However, because the case now asks what VACUUM
will do to a zero-sized physical file, it would be pretty surprising
if the answer were ever anything but "nothing" ... and if things were
indeed that broken, surely we'd find it out from other tests. Since
the test involves a table that's fairly large by regression-test
standards (100K rows), it's quite slow to run. Dropping it should
save some buildfarm cycles, so let's do that.
Discussion: https://postgr.es/m/32386.1493831320@sss.pgh.pa.us
Diffstat (limited to 'src')
-rw-r--r-- | src/test/regress/expected/matview.out | 20 | ||||
-rw-r--r-- | src/test/regress/sql/matview.sql | 12 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/test/regress/expected/matview.out b/src/test/regress/expected/matview.out index b14f2781783..868aef1d13a 100644 --- a/src/test/regress/expected/matview.out +++ b/src/test/regress/expected/matview.out @@ -382,26 +382,6 @@ NOTICE: drop cascades to 3 other objects DETAIL: drop cascades to view v_test2 drop cascades to materialized view mv_test2 drop cascades to materialized view mv_test3 --- test that vacuum does not make empty matview look unpopulated -CREATE TABLE hoge (i int); -INSERT INTO hoge VALUES (generate_series(1,100000)); -CREATE MATERIALIZED VIEW hogeview AS SELECT * FROM hoge WHERE i % 2 = 0; -CREATE INDEX hogeviewidx ON hogeview (i); -DELETE FROM hoge; -REFRESH MATERIALIZED VIEW hogeview; -SELECT * FROM hogeview WHERE i < 10; - i ---- -(0 rows) - -VACUUM ANALYZE hogeview; -SELECT * FROM hogeview WHERE i < 10; - i ---- -(0 rows) - -DROP TABLE hoge CASCADE; -NOTICE: drop cascades to materialized view hogeview -- test that duplicate values on unique index prevent refresh CREATE TABLE foo(a, b) AS VALUES(1, 10); CREATE MATERIALIZED VIEW mv AS SELECT * FROM foo; diff --git a/src/test/regress/sql/matview.sql b/src/test/regress/sql/matview.sql index 835934449f5..cef1176c109 100644 --- a/src/test/regress/sql/matview.sql +++ b/src/test/regress/sql/matview.sql @@ -122,18 +122,6 @@ SELECT relispopulated FROM pg_class WHERE oid = 'mv_test3'::regclass; DROP VIEW v_test1 CASCADE; --- test that vacuum does not make empty matview look unpopulated -CREATE TABLE hoge (i int); -INSERT INTO hoge VALUES (generate_series(1,100000)); -CREATE MATERIALIZED VIEW hogeview AS SELECT * FROM hoge WHERE i % 2 = 0; -CREATE INDEX hogeviewidx ON hogeview (i); -DELETE FROM hoge; -REFRESH MATERIALIZED VIEW hogeview; -SELECT * FROM hogeview WHERE i < 10; -VACUUM ANALYZE hogeview; -SELECT * FROM hogeview WHERE i < 10; -DROP TABLE hoge CASCADE; - -- test that duplicate values on unique index prevent refresh CREATE TABLE foo(a, b) AS VALUES(1, 10); CREATE MATERIALIZED VIEW mv AS SELECT * FROM foo; |