Commit ddf509eb authored by Simon Riggs's avatar Simon Riggs

Tweak tests in COPY FREEZE

parent 8de72b66
...@@ -297,16 +297,20 @@ SELECT * FROM vistest; ...@@ -297,16 +297,20 @@ SELECT * FROM vistest;
(2 rows) (2 rows)
COMMIT; COMMIT;
BEGIN;
TRUNCATE vistest; TRUNCATE vistest;
COPY vistest FROM stdin CSV FREEZE; COPY vistest FROM stdin CSV FREEZE;
NOTICE: FREEZE option specified but pre-conditions not met
SELECT * FROM vistest; SELECT * FROM vistest;
a a
--- ---
a x
b y
(2 rows) (2 rows)
COMMIT;
TRUNCATE vistest;
COPY vistest FROM stdin CSV FREEZE;
NOTICE: FREEZE option specified but pre-conditions not met
BEGIN; BEGIN;
INSERT INTO vistest VALUES ('z'); INSERT INTO vistest VALUES ('z');
SAVEPOINT s1; SAVEPOINT s1;
...@@ -318,8 +322,8 @@ NOTICE: FREEZE option specified but pre-conditions not met ...@@ -318,8 +322,8 @@ NOTICE: FREEZE option specified but pre-conditions not met
SELECT * FROM vistest; SELECT * FROM vistest;
a a
--- ---
a p
b g
z z
d d
e e
...@@ -360,6 +364,7 @@ SELECT * FROM vistest; ...@@ -360,6 +364,7 @@ SELECT * FROM vistest;
(2 rows) (2 rows)
DROP TABLE vistest; DROP TABLE vistest;
DROP FUNCTION truncate_in_subxact();
DROP TABLE x, y; DROP TABLE x, y;
DROP FUNCTION fn_x_before(); DROP FUNCTION fn_x_before();
DROP FUNCTION fn_x_after(); DROP FUNCTION fn_x_after();
...@@ -229,7 +229,6 @@ INSERT INTO vistest VALUES ('z'); ...@@ -229,7 +229,6 @@ INSERT INTO vistest VALUES ('z');
SAVEPOINT s1; SAVEPOINT s1;
TRUNCATE vistest; TRUNCATE vistest;
ROLLBACK TO SAVEPOINT s1; ROLLBACK TO SAVEPOINT s1;
-- FREEZE should be silently ignored here
COPY vistest FROM stdin CSV FREEZE; COPY vistest FROM stdin CSV FREEZE;
d d
e e
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment