Re: Difference Between record and rowtype

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Difference Between record and rowtype
Дата
Msg-id 7410.1155299596@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Difference Between record and rowtype  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
Список pgsql-hackers
Volkan YAZICI <yazicivo@ttnet.net.tr> writes:
> What's [the difference between] a record (which is a pseudo 'p' type) and
> a rowtype (which's a complex 'c' type).

The main difference is that you can't declare a table column as having
a pseudotype.  RECORD is restricted to uses where the system can
determine the specific row type from context, whereas a 'c' type is
effectively self-contained and will work anywhere.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Paul Silveira
Дата:
Сообщение: snapshot replication with pg_dump
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: libpq Describe Extension [WAS: Bytea and perl]