Re: [HACKERS] Insert into view - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Insert into view
Date
Msg-id 20750.943974479@sss.pgh.pa.us
Whole thread Raw
In response to RE: [HACKERS] Insert into view  ("Ansley, Michael" <Michael.Ansley@intec.co.za>)
List pgsql-hackers
"Ansley, Michael" <Michael.Ansley@intec.co.za> writes:
> I suppose that views could be made so that a tuple insert would fail,

I think Jan muttered something about emitting a warning notice for an
attempt to store into a table that has an ON SELECT DO INSTEAD rule but
no ON INSERT rule --- which would imply that you'll never be able to
see the data you're inserting.

This mistake has bitten enough people (including me ;-)) that it seems
a warning might be a good idea.  I'm not sure if I want it to be a hard
error though.  Are there any cases where it'd make sense to allow this?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Ansley, Michael"
Date:
Subject: RE: [HACKERS] Insert into view
Next
From: sk.list@comset.net
Date:
Subject: Re: [ADMIN] When postgres will be faster?