summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii2024-10-16 05:25:39 +0000
committerTatsuo Ishii2024-10-16 05:25:39 +0000
commit4d5836ebfd054b35afd0be0ee24a6aa8d47f1fc9 (patch)
treefddf307a48c2b518622ea041d690f9ee3de7fbbe
parent09d4e59c55408e435c8a6232426c07a384d5c8de (diff)
Enhance comment for POOL_CONNECTION_POOL.info.
-rw-r--r--src/include/pool.h9
1 files 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;