pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
autocommit
2+ messages / 2 participants
[nested] [flat]

* autocommit
@ 2004-03-26 19:31 Kemin Zhou <kemin.zhou@ferring.com>
  2004-03-27 03:23 ` Re: autocommit Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Kemin Zhou @ 2004-03-26 19:31 UTC (permalink / raw)
  To: pgsql-sql

This might be a wish list or add feature. 
Could we add one simple switch to psql (the client front end or the 
library) --noautocommit?
This will require you to type commit at the end of a query.  Most of the 
time I would be using
psql to do simple stuff.  Some times I need to update databases.  I kind 
get used to the autocommit.
When forgot to type BEGIN
I some times destroy the content of certain table when updating tables. 
the I have go for the backup.

Is my request reasonable or I have to cultivate a good habit?

Kemin





**********************************************************************
Proprietary or confidential information belonging to Ferring Holding SA or to one of its affiliated companies may be contained in the message. If you are not the addressee indicated in this message (or responsible for the delivery of the message to such person), please do not copy or deliver this message to anyone. In such case, please destroy this message and notify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to e-mail for messages of this kind. Opinions, conclusions and other information in this message represent the opinion of the sender and do not necessarily represent or reflect the views and opinions of Ferring.
**********************************************************************




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: autocommit
  2004-03-26 19:31 autocommit Kemin Zhou <kemin.zhou@ferring.com>
@ 2004-03-27 03:23 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2004-03-27 03:23 UTC (permalink / raw)
  To: Kemin Zhou <kemin.zhou@ferring.com>; +Cc: pgsql-sql

Kemin Zhou <kemin.zhou@ferring.com> writes:
> Could we add one simple switch to psql (the client front end or the 
> library) --noautocommit?

psql already has this, see \set AUTOCOMMIT.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-03-27 03:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-26 19:31 autocommit Kemin Zhou <kemin.zhou@ferring.com>
2004-03-27 03:23 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox