pgpool2.git / summary / log / commit / refs
commit 4d5836ebfd054b35afd0be0ee24a6aa8d47f1fc9
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Wed Oct 16 05:25:39 2024 +0000
Enhance comment for POOL_CONNECTION_POOL.info.
src/include/pool.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/include/pool.h b/src/include/pool.h
index 42393f828..95570c08e 100644
--- a/src/include/pool.h
+++ b/src/include/pool.h
@@ -4,7 +4,7 @@
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2023 PgPool Global Development Group
+ * Copyright (c) 2003-2024 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -266,7 +266,12 @@ typedef struct
typedef struct
{
- ConnectionInfo *info; /* connection info on shmem */
+ /*
+ * info is initialized by pool_init_cp() at the startup of pgpool child
+ * process. pool_coninfo(child id, pool index, backend id = 0) is used to
+ * refer to the appropriate pointer on shared memory.
+ */
+ ConnectionInfo *info;
POOL_CONNECTION_POOL_SLOT *slots[MAX_NUM_BACKENDS];
} POOL_CONNECTION_POOL;
[parent: 09d4e59c5540]