Re: INSERT/UPDATE/DELETE Views

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Kaarel <kaarel(at)future(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: INSERT/UPDATE/DELETE Views
Date: 2003-05-20 10:59:46
Message-ID: 20030520105945.GB4069@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2003-05-20 11:00:29 Re: Fw: How to get required space between field names
Previous Message Alexander Litvinov 2003-05-20 10:59:32 Re: How to get required space between field names