Re: Specifying Rowtypes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Specifying Rowtypes
Дата
Msg-id 21429.1043830014@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Specifying Rowtypes  (Curt Sampson <cjs@cynic.net>)
Список pgsql-hackers
Curt Sampson <cjs@cynic.net> writes:
> So currently the only way to specify a row type is by using a table,

No, as of 7.3 there's CREATE TYPE foo AS (column list).  But ...

> This is returning a row that (to my mind) doesn't match the type of the
> table above, because it's returning null for non-nullable columns:

The current behavior of a rowtype doesn't include any constraint checks.
Feel free to design a solution ...
        regards, tom lane


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: [GENERAL] tsearch comments
Следующее
От: Curt Sampson
Дата:
Сообщение: Re: Specifying Rowtypes