mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-13 17:29:44 +02:00
260b6afc79
which is broken in some weird way that I don't understand. I think it may be exposing a bug in the new psql --- for one thing, I get different results when I run psql by hand than the regress script gets. What the heck???
43 lines
618 B
Plaintext
43 lines
618 B
Plaintext
--
|
|
-- TRANSACTIONS
|
|
--
|
|
BEGIN;
|
|
SELECT *
|
|
INTO TABLE xacttest
|
|
FROM aggtest;
|
|
INSERT INTO xacttest (a, b) VALUES (777, 777.777);
|
|
END;
|
|
-- should retrieve one value--
|
|
SELECT a FROM xacttest WHERE a > 100;
|
|
a
|
|
-----
|
|
777
|
|
(1 row)
|
|
|
|
BEGIN;
|
|
CREATE TABLE disappear (a int4);
|
|
DELETE FROM aggtest;
|
|
-- should be empty
|
|
SELECT * FROM aggtest;
|
|
a | b
|
|
---+---
|
|
(0 rows)
|
|
|
|
ABORT;
|
|
-- should not exist
|
|
SELECT oid FROM pg_class WHERE relname = 'disappear';
|
|
oid
|
|
-----
|
|
(0 rows)
|
|
|
|
-- should have members again
|
|
SELECT * FROM aggtest;
|
|
a | b
|
|
-----+---------
|
|
56 | 7.8
|
|
100 | 99.097
|
|
0 | 0.09561
|
|
42 | 324.78
|
|
(4 rows)
|
|
|