Re: relation complex types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: relation complex types
Дата
Msg-id 23608.1338671587@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: relation complex types  (Darren Duncan <darren@darrenduncan.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: [GENERAL] pg_upgrade from 9.0.7 to 9.1.3: duplicate key pg_authid_oid_index
Следующее
От: Brar Piening
Дата:
Сообщение: Visual Studio 2012 RC