Does psql use nested transactions? - Mailing list pgsql-hackers

From Philip Warner
Subject Does psql use nested transactions?
Date
Msg-id 6.1.1.1.0.20040812001627.0497d860@203.8.195.10
Whole thread Raw
List 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       |/ 



pgsql-hackers by date:

Previous
From: Oliver Jowett
Date:
Subject: SAVEPOINT syntax again
Next
From: Tom Lane
Date:
Subject: Re: fsync, fdatasync, open_sync, and open_datasync, -- Linux insanity