1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

Tweak tests in COPY FREEZE

This commit is contained in:
Simon Riggs 2012-12-01 13:46:41 +00:00
parent 8de72b66a2
commit ddf509eb4a
2 changed files with 10 additions and 6 deletions

View File

@ -297,16 +297,20 @@ SELECT * FROM vistest;
(2 rows)
COMMIT;
BEGIN;
TRUNCATE vistest;
COPY vistest FROM stdin CSV FREEZE;
NOTICE: FREEZE option specified but pre-conditions not met
SELECT * FROM vistest;
a
---
a
b
x
y
(2 rows)
COMMIT;
TRUNCATE vistest;
COPY vistest FROM stdin CSV FREEZE;
NOTICE: FREEZE option specified but pre-conditions not met
BEGIN;
INSERT INTO vistest VALUES ('z');
SAVEPOINT s1;
@ -318,8 +322,8 @@ NOTICE: FREEZE option specified but pre-conditions not met
SELECT * FROM vistest;
a
---
a
b
p
g
z
d
e
@ -360,6 +364,7 @@ SELECT * FROM vistest;
(2 rows)
DROP TABLE vistest;
DROP FUNCTION truncate_in_subxact();
DROP TABLE x, y;
DROP FUNCTION fn_x_before();
DROP FUNCTION fn_x_after();

View File

@ -229,7 +229,6 @@ INSERT INTO vistest VALUES ('z');
SAVEPOINT s1;
TRUNCATE vistest;
ROLLBACK TO SAVEPOINT s1;
-- FREEZE should be silently ignored here
COPY vistest FROM stdin CSV FREEZE;
d
e