From: | "Tim Mickol" <tmickol(at)combimatrix(dot)com> |
---|---|
To: | "Neil Conway" <nconway(at)klamath(dot)dyndns(dot)org>, <pgsql-general(at)postgresql(dot)org> |
Subject: | RE: Autocommit off in psql?? |
Date: | 2001-05-22 23:21:21 |
Message-ID: | NCEEJEAEIDNFKBMALPGMOEIMCCAA.tmickol@combimatrix.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Actually, I think the original question alluded to SQL*PLUS behavior that
allows one to disable autocommit for an ENTIRE session,
not simply a discrete transaction. In psql, in order to enforce
autocommit=off for an entire session, you must repeatedly issue a series of
BEGIN directives, one following each ROLLBACK, COMMIT, or ABORT, yes?
tjm
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Neil Conway
Sent: Tuesday, May 22, 2001 3:49 PM
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Autocommit off in psql??
On Mon, May 21, 2001 at 09:38:11PM +0200, Bj?rn Lundin wrote:
> Hi!
> Is there a way of turning autocommit of in psql ?
> It would be nice for people used to Oracle's SQL*Plus.
> No fatal error has occurred yet, but some minor problems could have been
> avoided if rollback was possible when the fingers on the keyboard are
> faster than the brain :)
Yes, just start an explicit transaction with "BEGIN" -- this disables
autocommit (so when you want to commit your transaction, you'll need
to do "COMMIT" by hand).
Cheers,
Neil
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
From | Date | Subject | |
---|---|---|---|
Next Message | Paul Tomblin | 2001-05-23 00:18:31 | Re: Autocommit off in psql?? |
Previous Message | Neil Conway | 2001-05-22 22:48:51 | Re: Autocommit off in psql?? |