pgsql: Acquire appropriate locks when rewriting during RMV. - Mailing list pgsql-committers

From Kevin Grittner
Subject pgsql: Acquire appropriate locks when rewriting during RMV.
Date
Msg-id E1VclSO-0003Jm-2c@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Acquire appropriate locks when rewriting during RMV.

Since the query has not been freshly parsed when executing REFRESH
MATERIALIZED VIEW, locks must be explicitly taken before rewrite.

Backpatch to 9.3.

Andres Freund

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b21aed3964794f3ebfbfee9324badf1430b1efbc

Modified Files
--------------
src/backend/commands/matview.c |    7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Kevin Grittner
Date:
Subject: pgsql: Fix subquery reference to non-populated MV in CMV.
Next
From: Kevin Grittner
Date:
Subject: pgsql: Acquire appropriate locks when rewriting during RMV.