Re: INSERT/UPDATE/DELETE Views - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: INSERT/UPDATE/DELETE Views
Date
Msg-id 20030520105945.GB4069@svana.org
Whole thread Raw
In response to INSERT/UPDATE/DELETE Views  (Kaarel <kaarel@future.ee>)
Responses Re: INSERT/UPDATE/DELETE Views  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, May 20, 2003 at 01:01:01PM +0300, Kaarel wrote:
> Hi
>
> I'm relatively new to PostgreSQL. I was wondering why were
> INSERT/UPDATE/DELETE view diabled in PostgreSQL? Other database systems
> have these features so why shouldn't PostgreSQL. I did some searching
> and found that prior version 7.1 or 7.0 these features were in fact
> enabled. I couldn't however find a satisfying reason for the removal of
> these features from PostqreSQL mailing list archives.

You can define rules to make insert, update and delete work on views. I'm
surprised it was ever enabled by default since in the general case it is
impossible to workout what the rules should be.

Consider the view:

select * from a, b where a.id = b.id;

If you inserted into that, what should happen? So Postgresql leaves to option
upto the admin.

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> "the West won the world not by the superiority of its ideas or values or
> religion but rather by its superiority in applying organized violence.
> Westerners often forget this fact, non-Westerners never do."
>   - Samuel P. Huntington

Attachment

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: INSERT/UPDATE/DELETE Views
Next
From: Karsten Hilbert
Date:
Subject: Re: How to get required space between field names