From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Does psql use nested transactions? |
Date: | 2004-08-11 14:19:57 |
Message-ID: | 6.1.1.1.0.20040812001627.0497d860@203.8.195.10 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
In 8.0 beta 1 I just tried:
psql template1
> begin;
> select * from pg_class;
... got stuff ...
> select * from aaa;
ERROR: relation "zzz" does not exist
> select * from pg_class;
ERROR: current transaction is aborted....
Should psql run every statement in a nested transaction and only rollback
that TX? Or is that not possible/desirable. If possible, this would be a
*great* feature for those of use prone to mis-spellings.
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 03 5330 3172 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp.mit.edu:11371 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-08-11 14:46:33 | Re: will PITR in 8.0 be usable for "hot spare"/"log shipping" type of replication |
Previous Message | Oliver Jowett | 2004-08-11 14:17:18 | SAVEPOINT syntax again |