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

From Tom Lane
Subject Re: Proposal: variant of regclass
Date
Msg-id 14770.1386254517@sss.pgh.pa.us
Whole thread Raw
In response to Re: Proposal: variant of regclass  (Pavel Golub <pavel@microolap.com>)
Responses Re: Proposal: variant of regclass
Re: Proposal: variant of regclass
List pgsql-hackers
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".
        regards, tom lane



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Why we are going to have to go DirectIO
Next
From: Andres Freund
Date:
Subject: Re: same-address mappings vs. relative pointers