master register: check for existing master presence/active record

This commit is contained in:
Ian Barwick
2017-04-21 19:47:31 +09:00
parent 77870d3887
commit a16bbbf107
4 changed files with 295 additions and 10 deletions

View File

@@ -8,6 +8,10 @@
#define MAXLEN 1024
#define MAX_QUERY_LEN 8192
/* same as defined in src/include/replication/walreceiver.h */
#define MAXCONNINFO 1024
/* Why? http://stackoverflow.com/a/5459929/398670 */
#define STR(x) CppAsString(x)