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)
commit5dbc505012c79b0eef0b964670a5ae2cc98912a8
treeb69208cb42687362f0ab60eb7ec4f2c1d8679d91
parente0d978f48967ee97a15d3ce8e9ef176c5973b137
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