elog(DEBUG1, "Pool maintenance, done in %f seconds, removed %d pools",
difftime(time(NULL), now), count);
}
+
+bool
+check_persistent_connections(bool *newval, void **extra, GucSource source)
+{
+ if (*newval && IS_PGXC_DATANODE)
+ {
+ elog(WARNING, "persistent_datanode_connections = ON is currently not "
+ "supported on datanodes - ignoring");
+ *newval = false;
+ }
+ return true;
+}
},
&PersistentConnections,
false,
- NULL, NULL, NULL
+ check_persistent_connections, NULL, NULL
},
{
{"strict_statement_checking", PGC_USERSET, DEVELOPER_OPTIONS,
#include "pgxcnode.h"
#include "poolcomm.h"
#include "storage/pmsignal.h"
+#include "utils/guc.h"
#include "utils/hsearch.h"
#define MAX_IDLE_TIME 60
/* Do pool health check activity */
extern void PoolPingNodes(void);
+
+extern bool check_persistent_connections(bool *newval, void **extra,
+ GucSource source);
#endif