diff options
| author | Bruce Momjian | 2011-09-04 00:46:19 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2011-09-04 00:46:19 +0000 |
| commit | 85e6e1662b2c475a408afc1ea2ddade7974eddbb (patch) | |
| tree | 11c1e7509859d3c44203bceffb736a5127049038 /src/include/replication | |
| parent | ca598c18c678895fd625a68a4bf21d202c586b47 (diff) | |
Move AllowCascadeReplication() define from xlog.h to replication include
file.
Per suggestion from Alvaro.
Diffstat (limited to 'src/include/replication')
| -rw-r--r-- | src/include/replication/walreceiver.h | 4 | ||||
| -rw-r--r-- | src/include/replication/walsender.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h index 816fa5ba72..77f5252091 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. */ diff --git a/src/include/replication/walsender.h b/src/include/replication/walsender.h index 465072d17a..504cb9a833 100644 --- a/src/include/replication/walsender.h +++ b/src/include/replication/walsender.h @@ -13,6 +13,7 @@ #define _WALSENDER_H #include "access/xlog.h" +#include "fmgr.h" #include "nodes/nodes.h" #include "storage/latch.h" #include "replication/syncrep.h" |
