Re: Silent insert lack

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: l(dot)saccarola(at)bigfoot(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Silent insert lack
Date: 2001-01-15 15:22:39
Message-ID: 25548.979572159@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> 'insert' statement using a view seems to be accepted with no error message:

Yup, many people have been confused by this before you. The data does
actually get inserted into the physical table that underlies the view
--- whereupon you can never see it again, because anytime you try to
select from that table, the ON SELECT view rule fires.

7.1 will disallow insert into a view unless you provide a suitable ON
rule to rewrite the insert into something else.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Joseph Shraibman 2001-01-15 19:53:36 Re: [INTERFACES] jdbc driver: Support for 'BOOL'
Previous Message Gena Gurchonok 2001-01-15 14:18:52 table creation