]> granicus.if.org Git - postgresql/commitdiff
Tweak tests in COPY FREEZE
authorSimon Riggs <simon@2ndQuadrant.com>
Sat, 1 Dec 2012 13:46:41 +0000 (13:46 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Sat, 1 Dec 2012 13:46:41 +0000 (13:46 +0000)
src/test/regress/expected/copy2.out
src/test/regress/sql/copy2.sql

index d08f8cfdd477576a892c08ebaef089bbec0bbdcc..89d38917aa278147097497c3a8a919a82f652ab7 100644 (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();
index 3b6da45439dba379f7cd74d49de776ede6011e1e..717c3d081b3c6df5a6734c63149c58d00edd6e30 100644 (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