Re: Exporting PGINTERVALSTYLE prevents access to older server versions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Exporting PGINTERVALSTYLE prevents access to older server versions
Date: 2008-11-25 19:42:15
Message-ID: 4826.1227642135@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On Tuesday 25 November 2008 16:42:57 Tom Lane wrote:
>> ! putenv("PGOPTIONS=--intervalstyle=postgres_verbose");

>> So I guess the real question is what is the
>> use case for having pg_regress talk to older servers?

> There is no use. I was just thinking, why create a new environment variable
> when actually setting that variable would create all kinds of havoc for
> users.

> The change above looks appropriate to me.

Actually, in view of regressplans.sh, we have to work a bit harder than
that in pg_regress.c ... but I still agree that there's no real value in
adding a variable to libpq itself. Change committed.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2008-11-25 19:47:07 pg metadata and doc bug
Previous Message Tom Lane 2008-11-25 19:37:01 Re: Snapshot warning