Re: Per-column collation, work in progress - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Per-column collation, work in progress
Date
Msg-id AANLkTimozUaHHB3-q_4m3C3NgaWijTJkYm8aS+sqvq3q@mail.gmail.com
Whole thread Raw
In response to Re: Per-column collation, work in progress  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Per-column collation, work in progress
List pgsql-hackers
On Thu, Oct 21, 2010 at 4:28 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
>> We already have TypeName as a structure that contains type and typmod
>> (and collation, in my patch).  We could make that a primnode instead of
>> a parsenode, and use it in more places, or we could make a new leaner
>> structure that only contains the numeric info.
>
> TypeName per se is completely inappropriate for use beyond the first
> stage of parsing, because it requires catalog lookups to make any sense
> of.  I think the post-parsing representation should still start with a
> type OID.  I can agree with replacing typmod with a struct, though.

I think we should have both the type OID and the typmod in the struct.Carrying the type OID separately from the typmod
hascaused us enough 
heartache already.  No?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Per-column collation, work in progress
Next
From: "A.M."
Date:
Subject: Re: Exposing an installation's default value of unix_socket_directory