From: Kevin Grittner Date: Wed, 11 Dec 2013 14:56:02 +0000 (-0600) Subject: Add table name to VACUUM statement in matview.c. X-Git-Tag: REL9_3_3~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80811f94ebd7d47510e7c4aafc382babd3826d39;p=postgresql Add table name to VACUUM statement in matview.c. The test only needs the one table to be vacuumed. Vacuuming the database may affect other tests. Per gripe from Tom Lane. Back-patch to 9.3, where the test was was added. --- diff --git a/src/test/regress/expected/matview.out b/src/test/regress/expected/matview.out index 65a6bfdada..c61232fc89 100644 --- a/src/test/regress/expected/matview.out +++ b/src/test/regress/expected/matview.out @@ -377,7 +377,7 @@ SELECT * FROM hogeview WHERE i < 10; --- (0 rows) -VACUUM ANALYZE; +VACUUM ANALYZE hogeview; SELECT * FROM hogeview WHERE i < 10; i --- diff --git a/src/test/regress/sql/matview.sql b/src/test/regress/sql/matview.sql index b4be48e2ba..8b1e7349fb 100644 --- a/src/test/regress/sql/matview.sql +++ b/src/test/regress/sql/matview.sql @@ -121,7 +121,7 @@ CREATE INDEX hogeviewidx ON hogeview (i); DELETE FROM hoge; REFRESH MATERIALIZED VIEW hogeview; SELECT * FROM hogeview WHERE i < 10; -VACUUM ANALYZE; +VACUUM ANALYZE hogeview; SELECT * FROM hogeview WHERE i < 10; DROP TABLE hoge CASCADE;