From 4d5836ebfd054b35afd0be0ee24a6aa8d47f1fc9 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Wed, 16 Oct 2024 14:25:39 +0900 Subject: [PATCH] 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; -- 2.39.5