pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@dcc.uchile.cl>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: 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 19:15:49 -0400
Message-ID: <20030318231549.GB2577@dcc.uchile.cl> (raw)
In-Reply-To: <200303182218.h2IMI2I13909@candle.pha.pa.us>
References: <Pine.LNX.4.44.0303181551230.3331-100000@peter.localdomain>
	<200303182218.h2IMI2I13909@candle.pha.pa.us>

On Tue, Mar 18, 2003 at 05:18:02PM -0500, Bruce Momjian wrote:
> 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.

I think an environment variable would be right.  The current method is
not clean in the sense that a client cannot decide what she wants; she
just accepts the decision from the DBA.  Thus, an application can't be
written with a certain value in mind, because the DBA can change the
setting at any time.

Client-side decision is the wiser proposal, I think.

> 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.

The server doesn't know beforehand what the client wants.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"No renuncies a nada. No te aferres a nada"



view thread (133+ messages)  latest in thread

Message-ID: <20030318231549.GB2577@dcc.uchile.cl>
Permalink:  ../20030318231549.GB2577@dcc.uchile.cl/
Also on:    postgresql.org/message-id/20030318231549.GB2577@dcc.uchile.cl

 · 

reply

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: alvherre@dcc.uchile.cl, 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: <20030318231549.GB2577@dcc.uchile.cl>

* 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