pgsql: Obtain table locks as soon as practical during pg_dump.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Obtain table locks as soon as practical during pg_dump.
Дата
Msg-id E1QXhOO-0005J5-7u@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/68d977a73797a129913179010eea088f30e370b7

Modified Files
--------------
src/bin/pg_dump/common.c |   16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Obtain table locks as soon as practical during pg_dump.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Obtain table locks as soon as practical during pg_dump.