| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера