Re: Proposal: variant of regclass - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Proposal: variant of regclass
Date
Msg-id 52A09462.6070205@gmx.net
Whole thread Raw
In response to Re: Proposal: variant of regclass  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Proposal: variant of regclass
List pgsql-hackers
On 12/5/13, 9:41 AM, Tom Lane wrote:
> Pavel Golub <pavel@microolap.com> writes:
>> I personally see two approaches:
>> 1. Implement GUC variable controling this behaviour per session
>> 2. Introduce new safe reg* variables, e.g. "sregclass", "sregtype" etc.
> 
> I don't think new types are a good idea.  If we are afraid to change
> the behavior of the input converters, what we should do is introduce
> new functions, eg "toregclass(text) returns regclass".

We could invent some sneaky syntax variants, like 'pg_klass'::regclass
errors, but '?pg_klass'::regclass does not.





pgsql-hackers by date:

Previous
From: Claudio Freire
Date:
Subject: Re: Why we are going to have to go DirectIO
Next
From: Robert Haas
Date:
Subject: Re: same-address mappings vs. relative pointers