Re: plpgsql/rule question - Mailing list pgsql-general

From Ed L.
Subject Re: plpgsql/rule question
Date
Msg-id 200501112102.29684.pgsql@bluepolka.net
Whole thread Raw
In response to Re: plpgsql/rule question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tuesday January 11 2005 8:58, Tom Lane wrote:
> "Ed L." <pgsql@bluepolka.net> writes:
> > The reason I ask is because I'd like to allow any explicitly specified
> > values for the view insert, including NULL, to be passed through to the
> > table insert and override the column defaults.
>
> Possibly you can solve your problem by attaching the defaults to the
> view, not to the table at all.  ALTER TABLE view ALTER COLUMN col SET
> DEFAULT something has worked for a number of PG releases...

Perfect, thanks.  The more I learn, the less I know.

Ed


pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: plpgsql/rule question
Next
From: Greg Stark
Date:
Subject: Re: Bug in pg_dump in 7.4.6?