mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
pg_dump: Support using synchronized snapshots on standbys
This became possible by commit
6c2003f8a1
. This just makes pg_dump aware
of it and updates the documentation.
Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
This commit is contained in:
@ -1134,9 +1134,9 @@ setup_connection(Archive *AH, const char *dumpencoding,
|
||||
AH->remoteVersion >= 90200 &&
|
||||
!dopt->no_synchronized_snapshots)
|
||||
{
|
||||
if (AH->isStandby)
|
||||
if (AH->isStandby && AH->remoteVersion < 100000)
|
||||
exit_horribly(NULL,
|
||||
"Synchronized snapshots are not supported on standby servers.\n"
|
||||
"Synchronized snapshots on standby servers are not supported by this server version.\n"
|
||||
"Run with --no-synchronized-snapshots instead if you do not need\n"
|
||||
"synchronized snapshots.\n");
|
||||
|
||||
|
Reference in New Issue
Block a user