Re: updatable views and default values - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: updatable views and default values
Date
Msg-id 20060902232249.GO84229@nasby.net
Whole thread Raw
In response to Re: updatable views and default values  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: updatable views and default values  (David Fetter <david@fetter.org>)
List pgsql-hackers
On Thu, Aug 31, 2006 at 06:29:50PM -0400, Tom Lane wrote:
> For backwards compatibility we should probably say that this automatic
> lifting of base-table defaults happens only if the INSERT rule is
> implicitly generated ... if you write a manual INSERT rule you need
> manual defaults too.  Or should "propagate default values" become an
> explicit attribute of ON INSERT rules?

ISTM that least surprise dictates that inserting into a view uses the
base table default unless you specifically override them.
-- 
Jim C. Nasby, Database Architect                   jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [COMMITTERS] pgsql: Revert change to turn
Next
From: Bruce Momjian
Date:
Subject: Re: TODO Request