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 ------ master Details ------- http://git.postgresql.org/pg/commitdiff/2a781d57dcd027df32d15ee2378b84d0c4d005d1 Modified Files -------------- src/backend/commands/matview.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
