diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-02-10 21:00:29 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-02-10 21:04:02 +0200 |
commit | b186523fd97ce02ffbb7e21d5385a047deeef4f6 (patch) | |
tree | 00e70beaaa8529b291f85b214ee87fc686083cea /src/backend/utils/misc/guc.c | |
parent | 4c468b37a281941afd3bf61c782b20def8c17047 (diff) | |
download | postgresql-b186523fd97ce02ffbb7e21d5385a047deeef4f6.tar.gz postgresql-b186523fd97ce02ffbb7e21d5385a047deeef4f6.zip |
Send status updates back from standby server to master, indicating how far
the standby has written, flushed, and applied the WAL. At the moment, this
is for informational purposes only, the values are only shown in
pg_stat_replication system view, but in the future they will also be needed
for synchronous replication.
Extracted from Simon riggs' synchronous replication patch by Robert Haas, with
some tweaking by me.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 216236b5294..470183d4aba 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -55,6 +55,7 @@ #include "postmaster/postmaster.h" #include "postmaster/syslogger.h" #include "postmaster/walwriter.h" +#include "replication/walreceiver.h" #include "replication/walsender.h" #include "storage/bufmgr.h" #include "storage/standby.h" @@ -1441,6 +1442,16 @@ static struct config_int ConfigureNamesInt[] = }, { + {"wal_receiver_status_interval", PGC_SIGHUP, WAL_STANDBY_SERVERS, + gettext_noop("Sets the maximum interval between WAL receiver status reports to the master."), + NULL, + GUC_UNIT_S + }, + &wal_receiver_status_interval, + 10, 0, INT_MAX/1000, NULL, NULL + }, + + { {"max_connections", PGC_POSTMASTER, CONN_AUTH_SETTINGS, gettext_noop("Sets the maximum number of concurrent connections."), NULL |