diff options
author | Tom Lane | 2004-09-06 17:56:33 +0000 |
---|---|---|
committer | Tom Lane | 2004-09-06 17:56:33 +0000 |
commit | 23645f058231203d29f92162640a087003794137 (patch) | |
tree | 21f40bda7329e3d1f1f4fbca974f4d33736ad92a /src/test/regress/expected/transactions.out | |
parent | eb917c1a212d19895ce79508c14da3489b352742 (diff) |
Fix incorrect ordering of smgr cleanup relative to buffer pin cleanup
during transaction abort. Add a regression test case to catch related
mistakes in future. Alvaro Herrera and Tom Lane.
Diffstat (limited to 'src/test/regress/expected/transactions.out')
-rw-r--r-- | src/test/regress/expected/transactions.out | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/regress/expected/transactions.out b/src/test/regress/expected/transactions.out index 2b8470c931d..955558d690b 100644 --- a/src/test/regress/expected/transactions.out +++ b/src/test/regress/expected/transactions.out @@ -374,6 +374,21 @@ ERROR: portal "c" cannot be run FETCH 10 FROM c; ERROR: portal "c" cannot be run COMMIT; +-- test case for problems with dropping an open relation during abort +BEGIN; + savepoint x; + CREATE TABLE koju (a INT UNIQUE); +NOTICE: CREATE TABLE / UNIQUE will create implicit index "koju_a_key" for table "koju" + INSERT INTO koju VALUES (1); + INSERT INTO koju VALUES (1); +ERROR: duplicate key violates unique constraint "koju_a_key" + rollback to x; + CREATE TABLE koju (a INT UNIQUE); +NOTICE: CREATE TABLE / UNIQUE will create implicit index "koju_a_key" for table "koju" + INSERT INTO koju VALUES (1); + INSERT INTO koju VALUES (1); +ERROR: duplicate key violates unique constraint "koju_a_key" +ROLLBACK; DROP TABLE foo; DROP TABLE baz; DROP TABLE barbaz; |