Re: Cannot declare record members NOT NULL - Mailing list pgsql-general

From Richard Broersma Jr
Subject Re: Cannot declare record members NOT NULL
Date
Msg-id 62727.79948.qm@web31801.mail.mud.yahoo.com
Whole thread Raw
In response to Re: Cannot declare record members NOT NULL  (Cultural Sublimation <cultural_sublimation@yahoo.com>)
Responses Re: Cannot declare record members NOT NULL
List pgsql-general
--- Cultural Sublimation <cultural_sublimation@yahoo.com> wrote:

> > I don't know if this will work, but here is another idea:
> >
> > SELECT movie_id, movie_name
> >   FROM get_movies() AS ( int4 NOT NULL, text NOT NULL );
> >
>
> Hi,
>
> Nope.  That's not even valid syntax...

It isn't valid SQL spec syntax but it is a Postgresql-ism for functions return types:
http://www.postgresql.org/docs/8.2/interactive/sql-select.html

notice this "from-type" listing for functions.

Regards,
Richard Broersma Jr.

pgsql-general by date:

Previous
From: Cultural Sublimation
Date:
Subject: Re: Cannot declare record members NOT NULL
Next
From: Tom Lane
Date:
Subject: Re: Cannot declare record members NOT NULL