From: no-email@example.com
To: pgsql-bugs@postgresql.org
Subject: BUG #9398: DELETE refering to a materialized view produces "cannot lock rows in materialized view" error
Date: Sat, 01 Mar 2014 09:51:25 +0000
Message-ID: <20140301095125.11734.87903@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 9398
Logged by: nakag
Email address: no-email@example.com
PostgreSQL version: 9.3.3
Operating system: Linux
Description:
CREATE TABLE base ( id int primary key );
CREATE MATERIALIZED VIEW mv AS SELECT * FROM base;
CREATE TABLE d ( id int primary key );
DELETE FROM d WHERE EXISTS ( SELECT * FROM mv WHERE mv.id = d.id );
The above code produces an ERROR "cannot lock rows in materialized view."
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: no-email@example.com
Subject: Re: BUG #9398: DELETE refering to a materialized view produces "cannot lock rows in materialized view" error
In-Reply-To: <20140301095125.11734.87903@wrigleys.postgresql.org>
References: <20140301095125.11734.87903@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox