From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Development <pgsql-hackers@postgresql.org>
Subject: Re: [INTERFACES] Roadmap for FE/BE protocol redesign
Date: Tue, 18 Mar 2003 17:18:02 -0500 (EST)
Message-ID: <200303182218.h2IMI2I13909@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0303181551230.3331-100000@peter.localdomain>
Peter Eisentraut wrote:
> Bruce Momjian writes:
>
> > What if folks want all their connections autocommit off.
>
> For interactive use, people can record their preferred setting in
> ~/.psqlrc or something like that.
But that only works for psql, right? How would this be done at the
libpq level? Environment variables? GUC seems a whole lot cleaner.
> But any non-interactive program is written with a specific autocommit
> setting in mind. Either it assumes that single statements are
> automatically committed or it issues explicit COMMIT commands. That
> means, the choice of autocommit mode is always ultimately determined by
> the client, never by the server or its administrator.
>
> For that very reason most standard interfaces define in their
> specification whether applications must assume autocommit behavior or must
> not do so.
I understand. I just don't see any value in pushing that logic into
each client when we can do it centrally in the server.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: pgman@candle.pha.pa.us, peter_e@gmx.net, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
Subject: Re: [INTERFACES] Roadmap for FE/BE protocol redesign
In-Reply-To: <200303182218.h2IMI2I13909@candle.pha.pa.us>
* 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