Re: Cannot declare record members NOT NULL

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
Cc: Cultural Sublimation <cultural_sublimation(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot declare record members NOT NULL
Date: 2007-09-12 22:30:22
Message-ID: 20070912223022.GC6627@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Broersma Jr wrote:
>
> --- Cultural Sublimation <cultural_sublimation(at)yahoo(dot)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.

Yeah, but it doesn't allow the NOT NULL specification.

I don't think there's any way to do what the OP wants ATM.

--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
Voy a acabar con todos los humanos / con los humanos yo acabaré
voy a acabar con todos / con todos los humanos acabaré (Bender)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Cultural Sublimation 2007-09-12 22:51:14 Re: Cannot declare record members NOT NULL
Previous Message Tom Lane 2007-09-12 22:26:45 Re: Cannot declare record members NOT NULL