Re: psql variables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql variables
Date
Msg-id 22961.1076356881@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql variables  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Shell variables did serve as a design model, mostly because I found it 
> better to use *some* model rather than inventing behavior out of thin 
> air.  Consequently, I am sort of biased on this.

It does seem worth pointing out that shell variables have acted the way
they do for a long time.  I haven't heard all that many people
complaining about it, so I'm unconvinced that the behavior is broken.
I'm definitely against breaking backwards compatibility to improve it
in psql.

I might be willing to support an optional (not-default) mode with more
error checking, though.  What did you think of the "\declare foo" idea?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: PITR Dead horse?
Next
From: Tom Lane
Date:
Subject: Re: 7.4.1 release status - Turkish Locale