From: Stephen Kennedy <skennedy@tissat.es>
To: pgsql-admin@postgresql.org
Subject: Re: psql and autocommit
Date: Tue, 24 Aug 2004 10:17:23 +0200
Message-ID: <412AF993.5090201@tissat.es> (raw)
In-Reply-To: <4129F3C0.7080102@aldratech.com>
References: <Pine.LNX.4.58.0408231615000.2753@p-roman.jct.ac.il>
<4129F3C0.7080102@aldratech.com>
Just a note to clarify sqlplus
It does start in noautocommit as you say.
However, it issues a commit when you exit (with quit, Ctrl-D or whatever)
which is (in my opinion) incorrect, and very much worth taking into account
when writing scripts for Oracle.
I think it should automatically issue a rollback on exit.
regards,
Stephen.
Radu-Adrian Popescu wrote:
> Tsirkin Evgeny wrote:
> [snip]
>
>> commit to my shell scripts.I beleave that automatically
>> commiting the psql -c queries is very logical thing.
>
>
> I'm sure there are people who disagree with that statement. For
> instance Oracle's sqlplus starts in noautocommit by default. And I've
> found that to be a good thing actually.
> For what it's worth I also think default client policy may as well be
> left unchanged, or there will be a lot of baffled people.
>
> Regards,
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: skennedy@tissat.es
Subject: Re: psql and autocommit
In-Reply-To: <412AF993.5090201@tissat.es>
References: <Pine.LNX.4.58.0408231615000.2753@p-roman.jct.ac.il> <4129F3C0.7080102@aldratech.com> <412AF993.5090201@tissat.es>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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