]> granicus.if.org Git - postgresql/commit
Only issue LOCK TABLE commands when necessary
authorStephen Frost <sfrost@snowman.net>
Fri, 6 May 2016 18:06:50 +0000 (14:06 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 6 May 2016 18:06:50 +0000 (14:06 -0400)
commite1b120a8cbb0f39a79926fd173f33e57202cdfa0
tree6fd550b4bbea3471abe333c0e7b9ebf0578a783e
parent5d589993cad212f7d556d52cc1e42fe18f65b057
Only issue LOCK TABLE commands when necessary

Reviewing the cases where we need to LOCK a given table during a dump,
it was pointed out by Tom that we really don't need to LOCK a table if
we are only looking to dump the ACL for it, or certain other
components.  After reviewing the queries run for all of the component
pieces, a list of components were determined to not require LOCK'ing
of the table.

This implements a check to avoid LOCK'ing those tables.

Initial complaint from Rushabh Lathia, discussed with Robert and Tom,
the patch is mine.
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h