Fix event logging when cloning from another standby

We can only write to the primary, which we'll need to find seperately
when cloning from a standby.
This commit is contained in:
Ian Barwick
2015-03-06 18:39:36 +09:00
parent ff63954c68
commit 2339adba6c
3 changed files with 118 additions and 4 deletions

View File

@@ -42,6 +42,9 @@ int guc_set_typed(PGconn *conn, const char *parameter, const char *op,
const char *value, const char *datatype);
PGconn *get_primary_connection(PGconn *standby_conn, char *cluster,
int *primary_node_id_ptr,
char *primary_conninfo_out);
PGconn *get_upstream_connection(PGconn *standby_conn, char *cluster,
int node_id,
int *upstream_node_id_ptr,