aboutsummaryrefslogtreecommitdiff
path: root/src/include/replication/walreceiver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/replication/walreceiver.h')
-rw-r--r--src/include/replication/walreceiver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h
index 816fa5ba72a..77f52520917 100644
--- a/src/include/replication/walreceiver.h
+++ b/src/include/replication/walreceiver.h
@@ -12,6 +12,7 @@
#ifndef _WALRECEIVER_H
#define _WALRECEIVER_H
+#include "access/xlog.h"
#include "access/xlogdefs.h"
#include "storage/spin.h"
#include "pgtime.h"
@@ -27,6 +28,9 @@ extern bool hot_standby_feedback;
*/
#define MAXCONNINFO 1024
+/* Can we allow the standby to accept replication connection from another standby? */
+#define AllowCascadeReplication() (EnableHotStandby && max_wal_senders > 0)
+
/*
* Values for WalRcv->walRcvState.
*/