* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2019 PgPool Global Development Group
+ * Copyright (c) 2003-2023 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
#define POOL_BLOCK_USED 0x0001 /* is this block used? */
+/*
+ * Cache block header (12 bytes)
+ */
typedef struct
{
unsigned char flags; /* flags. see above */
#define POOL_ITEM_HAS_NEXT 0x0002 /* is this item has "next" item? */
#define POOL_ITEM_DELETED 0x0004 /* is this item deleted? */
+/*
+ * Cache item pointer (48 bytes)
+ */
typedef struct
{
POOL_QUERY_HASH query_hash; /* md5 hashed query signature */
/*
* "Cache Item header" structure is used to manage each cache item.
+ * (24 bytes)
*/
typedef struct
{
*--------------------------------------------------------------------------------
*/
-/* Hash element */
+/* Hash element (48 bytes) */
typedef struct POOL_HASH_ELEMENT
{
struct POOL_HASH_ELEMENT *next; /* link to next entry */
typedef uint32 POOL_HASH_KEY;
-/* Hash header element */
+/* Hash header element (16 bytes) */
typedef struct
{
POOL_HASH_KEY hashkey; /* hash key */