* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2015 PgPool Global Development Group
+ * Copyright (c) 2003-2017 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
#include "utils/elog.h"
#include "context/pool_process_context.h"
#include "pool_config.h" /* remove me afterwards */
+#include <unistd.h>
static POOL_PROCESS_CONTEXT process_context_d;
static POOL_PROCESS_CONTEXT *process_context;
/*
* Undo the alarm signal handler using the remaining time.
*/
-void pool_undo_alarm()
+void pool_undo_alarm(void)
{
POOL_PROCESS_CONTEXT *p = pool_get_process_context();
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2010 PgPool Global Development Group
+ * Copyright (c) 2003-2017 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
extern void pool_coninfo_unset_frontend_connected(int proc_id, int pool_index);
extern void pool_alarm(pool_sighandler_t handler, unsigned int second);
-extern void pool_undo_alarm();
+extern void pool_undo_alarm(void);
#endif /* POOL_PROCESS_CONTEXT_H */
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2015 PgPool Global Development Group
+ * Copyright (c) 2003-2017 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
UNIT unit;
} Interval;
+/* Defined in pool_session_context.h */
+extern int pool_get_major_version(void);
/* NUM_BACKENDS now always returns actual number of backends */
#define NUM_BACKENDS (pool_config->backend_desc->num_backends)
static RETSIGTYPE wakeup_handler(int sig)
{
- int save_errno = errno;
-
POOL_SETMASK(&BlockSig);
wakeup_request = 1;
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2010 PgPool Global Development Group
+ * Copyright (c) 2003-2017 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
bool run_as_pcp_child;
ProcessType processType;
ProcessState processState;
-random_start_time;
#include <sys/time.h>
+#include <pcp/pcp.h>
struct timeval pcp_timeout;
memset((void *)WD_Locks, 0, alloc_size);
ereport(DEBUG1,
- (errmsg("WD_Locks: sizeof(bool) (%d) * WD_MAX_LOCK_NUM (%d) = %d bytes requested for shared memory",
+ (errmsg("WD_Locks: sizeof(bool) (%lu) * WD_MAX_LOCK_NUM (%d) = %d bytes requested for shared memory",
sizeof(bool),
WD_MAX_LOCK_NUM,
alloc_size)));
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2016 PgPool Global Development Group
+ * Copyright (c) 2003-2017 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+
#include "pool.h"
#include "utils/elog.h"
#include "pool_config.h"