* 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
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;