From: Pallavi Sontakke Date: Thu, 28 Jul 2016 05:14:32 +0000 (+0530) Subject: Add test case for Issue #6 X-Git-Tag: XL9_5_R1_3~13 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=3a02f834ea66300d7725029d38f6fcf39e251a23;p=postgres-xl.git Add test case for Issue #6 REFRESH MATERIALISED VIEW CONCURRENTLY gives error --- diff --git a/src/test/regress/expected/xl_reported_bugs.out b/src/test/regress/expected/xl_reported_bugs.out index 7218b26c73..e8b8bd6f2d 100644 --- a/src/test/regress/expected/xl_reported_bugs.out +++ b/src/test/regress/expected/xl_reported_bugs.out @@ -1,3 +1,12 @@ +-- #6 +-- REFRESH MATERIALISED VIEW CONCURRENTLY gives error +CREATE TABLE t (a int, b int); +CREATE MATERIALIZED VIEW mvt AS SELECT * FROM t; +CREATE UNIQUE INDEX mvidx ON mvt(a); +REFRESH MATERIALIZED VIEW mvt; +REFRESH MATERIALIZED VIEW CONCURRENTLY mvt; +DROP MATERIALIZED VIEW mvt; +DROP TABLE t; -- #74 -- SQL error codes are not correctly sent back to the client when dealing with error on COPY protocol \set VERBOSITY verbose diff --git a/src/test/regress/sql/xl_reported_bugs.sql b/src/test/regress/sql/xl_reported_bugs.sql index a8c84657eb..5114159faa 100644 --- a/src/test/regress/sql/xl_reported_bugs.sql +++ b/src/test/regress/sql/xl_reported_bugs.sql @@ -1,3 +1,12 @@ +-- #6 +-- REFRESH MATERIALISED VIEW CONCURRENTLY gives error +CREATE TABLE t (a int, b int); +CREATE MATERIALIZED VIEW mvt AS SELECT * FROM t; +CREATE UNIQUE INDEX mvidx ON mvt(a); +REFRESH MATERIALIZED VIEW mvt; +REFRESH MATERIALIZED VIEW CONCURRENTLY mvt; +DROP MATERIALIZED VIEW mvt; +DROP TABLE t; -- #74 -- SQL error codes are not correctly sent back to the client when dealing with error on COPY protocol \set VERBOSITY verbose