Enhance comment for POOL_CONNECTION_POOL.info.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 16 Oct 2024 05:25:39 +0000 (14:25 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 16 Oct 2024 05:25:39 +0000 (14:25 +0900)
src/include/pool.h

index 42393f828d874e58e23dd41315b4502cff67f017..95570c08e7d89e0fef86f8f32eaa73a0ab5f5950 100644 (file)
@@ -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;