]> granicus.if.org Git - postgresql/commit
Fix pg_dump to read-lock all tables to be dumped as soon as it's read
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Jan 2002 23:21:55 +0000 (23:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Jan 2002 23:21:55 +0000 (23:21 +0000)
commit0e1a5075fdaec2f42f96cf2a1938c99fcc6b026c
tree512b09428119c689e738f47a041f0dce1293c8ac
parent5c2d36c3ddf77de9151e579c358a066c9443762b
Fix pg_dump to read-lock all tables to be dumped as soon as it's read
their names from pg_class.  This considerably reduces the window wherein
someone could DROP or ALTER a table that pg_dump is intending to dump.
Not a perfect solution, but definitely an improvement.  Per complaints
from Marc Fournier; patch by Brent Verner with some kibitzing by Tom Lane.
src/bin/pg_dump/common.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h