Re: Specifying Rowtypes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Specifying Rowtypes
Date
Msg-id 21429.1043830014@sss.pgh.pa.us
Whole thread Raw
In response to Specifying Rowtypes  (Curt Sampson <cjs@cynic.net>)
List 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 by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: [GENERAL] tsearch comments
Next
From: Curt Sampson
Date:
Subject: Re: Specifying Rowtypes