Re: Updateable VIEWS and the manual

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Updateable VIEWS and the manual
Date: 2012-11-28 23:51:38
Message-ID: CAHyXU0y1MiEB2k0-QugXu0BhGLpDacw7tuEqyfSOSpx-dkNh_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 28, 2012 at 4:43 PM, Thomas Kellerer <spam_eater(at)gmx(dot)net> wrote:
> Hi,
>
> I just noticed the following statement in the CREATE VIEW documentation (9.2
> and 9.1):
>
> Currently, views are read only: the system will not allow an insert,
> update, or delete on a view. You can get the effect of an updatable view
> by
> creating rules that rewrite inserts, etc. on the view into appropriate
> actions
> on other tables. For more information see CREATE RULE.
>
> Wouldn't it make more sense to refer to INSTEAD OF triggers?
>
> My understanding was that an INSTEAD OF trigger was preferred over a rule
> nowadays.

yup.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message classical_89 2012-11-29 03:53:42 Chang wal block size and database block size in Windows
Previous Message Seref Arikan 2012-11-28 23:23:02 Re: create table in memory