BUG #9398: DELETE refering to a materialized view produces "cannot lock rows in materialized view" error

From: no-email(at)example(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #9398: DELETE refering to a materialized view produces "cannot lock rows in materialized view" error
Date: 2014-03-01 09:51:25
Message-ID: 20140301095125.11734.87903@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 9398
Logged by: nakag
Email address: no-email(at)example(dot)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."

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message ..: Mark Sloan :.. 2014-03-01 15:59:08 Re: BUG #9374: some timzone abbver is missing from pg_timezone_abbrevs that are in pg_timezone_names
Previous Message Tom Lane 2014-03-01 01:57:04 Re: BUG #9374: some timzone abbver is missing from pg_timezone_abbrevs that are in pg_timezone_names