]> granicus.if.org Git - postgresql/commit
Obtain table locks as soon as practical during pg_dump.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Jun 2011 22:19:31 +0000 (18:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Jun 2011 22:19:31 +0000 (18:19 -0400)
commit6c320b8ab84584e8f21cf8341121a47b51e4d297
treec77add90f3057430392c202a0f60bce841ad7b5e
parent199d449c076a8564a9e8b113818f71c43f59d4cd
Obtain table locks as soon as practical during pg_dump.

For some reason, when we (I) added table lock acquisition to pg_dump,
we didn't think about making it happen as soon as possible after the
start of the transaction.  What with subsequent additions, there was
actually quite a lot going on before we got around to that; which sort
of defeats the purpose.  Rearrange the order of calls in dumpSchema()
to close the risk window as much as we easily can.  Back-patch to all
supported branches.
src/bin/pg_dump/common.c