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