Обсуждение: pgsql: Make pg_dump error cleanly with -j against hot standby

Поиск
Список
Период
Сортировка

pgsql: Make pg_dump error cleanly with -j against hot standby

От
Magnus Hagander
Дата:
Make pg_dump error cleanly with -j against hot standby

Getting a synchronized snapshot is not supported on a hot standby node,
and is by default taken when using -j with multiple sessions. Trying to
do so still failed, but with a server error that would also go in the
log. Instead, proprely detect this case and give a better error message.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d74048defcb1f48c5cc5a1b2a8aa0f7da8663394

Modified Files
--------------
src/bin/pg_dump/pg_backup.h    |  1 +
src/bin/pg_dump/pg_backup_db.c | 38 ++++++++++++++++++++++++++++++
src/bin/pg_dump/pg_backup_db.h |  1 +
src/bin/pg_dump/pg_dump.c      | 53 +++++++++++-------------------------------
4 files changed, 53 insertions(+), 40 deletions(-)