mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Cascading replication feature for streaming log-based replication.
Standby servers can now have WALSender processes, which can work with either WALReceiver or archive_commands to pass data. Fully updated docs, including new conceptual terms of sending server, upstream and downstream servers. WALSenders terminated when promote to master. Fujii Masao, review, rework and doc rewrite by Simon Riggs
This commit is contained in:
@ -339,6 +339,11 @@ SendBaseBackup(BaseBackupCmd *cmd)
|
||||
MemoryContext old_context;
|
||||
basebackup_options opt;
|
||||
|
||||
if (am_cascading_walsender)
|
||||
ereport(FATAL,
|
||||
(errcode(ERRCODE_CANNOT_CONNECT_NOW),
|
||||
errmsg("recovery is still in progress, can't accept WAL streaming connections for backup")));
|
||||
|
||||
parse_basebackup_options(cmd->options, &opt);
|
||||
|
||||
backup_context = AllocSetContextCreate(CurrentMemoryContext,
|
||||
|
Reference in New Issue
Block a user