pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Lock relation used to generate fresh data for RMV. 2+ messages / 2 participants [nested] [flat]
* pgsql: Lock relation used to generate fresh data for RMV. @ 2013-11-05 21:45 Kevin Grittner <kgrittn@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Kevin Grittner @ 2013-11-05 21:45 UTC (permalink / raw) To: pgsql-committers Lock relation used to generate fresh data for RMV. The relation should not be accessible to any other process, but it should be locked for consistency. Since this is not known to cause any bug, it will not be back-patch, at least for now. Per report from Andres Freund Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/2636ecf78b608f7faf1a0a7ff9b56fa54b7710db Modified Files -------------- src/backend/commands/matview.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Lock relation used to generate fresh data for RMV. @ 2018-10-01 15:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-10-01 15:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Lock relation used to generate fresh data for RMV. Back-patch the 9.4-era commit 2636ecf78 into 9.3, as that fixes a case where we open a relation while not holding any lock on it. It's probably mostly safe anyway, since no other session could touch the newly-created table; but I think CheckTableNotInUse could be fooled if one tried. Per testing with a patch that complains if we open a relation without holding any lock on it. I don't plan to back-patch that patch, but we should close the holes it identifies in all supported branches. Discussion: https://postgr.es/m/2038.1538335244@sss.pgh.pa.us Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/de0bea8d4d810c44c72d20ce7e0f51cc717c34ef Modified Files -------------- src/backend/commands/matview.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-10-01 15:51 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2013-11-05 21:45 pgsql: Lock relation used to generate fresh data for RMV. Kevin Grittner <kgrittn@postgresql.org> 2018-10-01 15:51 pgsql: Lock relation used to generate fresh data for RMV. Tom Lane <tgl@sss.pgh.pa.us>
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