Re: Concurrently updating an updatable view

From: Richard Huxton <dev(at)archonet(dot)com>
To: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
Cc: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Concurrently updating an updatable view
Date: 2007-05-15 16:10:59
Message-ID: 4649DB93.8030504@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hiroshi Inoue wrote:
> Florian G. Pflug wrote:
>
>> I think there should be a big, fat warning that self-referential
>> updates have highly non-obvious behaviour in read-committed mode,
>> and should be avoided.
>
> It seems pretty difficult for PostgreSQL rule system to avoid such
> kind of updates. I'm suspicious if UPDATABLE VIEWS can be implemented
> using the rule system.

Remember this affects all self-referential joins on an UPDATE (and
DELETE?) not just views. It's just that a rule is more likely to produce
that type of query.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2007-05-15 16:11:27 Re: Not ready for 8.3
Previous Message Gregory Stark 2007-05-15 15:54:25 Re: Not ready for 8.3