Re: relation complex types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: relation complex types
Date
Msg-id 23608.1338671587@sss.pgh.pa.us
Whole thread Raw
In response to Re: relation complex types  (Darren Duncan <darren@darrenduncan.net>)
List pgsql-hackers
Darren Duncan <darren@darrenduncan.net> writes:
> Jaime Casanova wrote:
>> I knew that we create an entry in pg_type for every table we create,
>> what i didn't know is that we actually create 2 entries.
>> for example CREATE TABLE foo (i int); will create types foo and _foo.
>> so, any reason to create 2 entries?

> I don't know offhand; maybe its the corresponding row/tuple type and 
> table/relation type?

_foo is the array type foo[].  There was bellyaching about the extra
pg_type entries when we added support for arrays of complex types,
but it was decided that trying to suppress them for table rowtypes
would be too, um, complex.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [GENERAL] pg_upgrade from 9.0.7 to 9.1.3: duplicate key pg_authid_oid_index
Next
From: Brar Piening
Date:
Subject: Visual Studio 2012 RC