Re: [INTERFACES] Roadmap for FE/BE protocol redesign

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [INTERFACES] Roadmap for FE/BE protocol redesign
Date: 2003-03-18 22:18:02
Message-ID: 200303182218.h2IMI2I13909@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut - PostgreSQL 2003-03-18 22:19:47 pgsql-server/ oc/src/sgml/manage-ag.sgml oc/sr ...
Previous Message Peter Eisentraut 2003-03-18 22:06:21 libpq's error messages not working as before

Browse pgsql-interfaces by date

  From Date Subject
Next Message Alvaro Herrera 2003-03-18 23:15:49 Re: [INTERFACES] Roadmap for FE/BE protocol redesign
Previous Message Peter Eisentraut 2003-03-18 22:03:26 Re: [INTERFACES] Roadmap for FE/BE protocol redesign