PCP_INVAL...ERY_CACHE(1)
π NAME π
pcp_invalidate_query_cache β bestie, this one invalidates query cache contents, periodt β¨
πΈ SYNOPSIS πΈ
pcp_invalidate_query_cache [options...]
π¦ DESCRIPTION π¦
okay so here's the vibe: pcp_invalidate_query_cache drops a query cache invalidation request right into the shared memory area π«Ά. That request gets picked up and processed by one of the Pgpool-II child processes β the one attached to each pgpool client session β and it happens when a message from the client is processed. which means π if literally nobody is connected to Pgpool-II, or all your clients are just sitting there idle, that request is NOT getting processed until the next message shows up. no cap.
the way this command works with stats is lowkey specific, so listen up π
. It does not modify the statistics data that SHOW POOL_CACHE (SHOW_POOL_CACHE(1)) shows you β BUT, and this is the important bit, part of that statistics data does get affected, because this command invalidates the contents of the query cache. so:
num_cache_hitsandnum_selectskeep right on increasing even after the query cache has been invalidated πused_hash_entries,num_cache_entriesandused_cache_entries_sizeall start off with0free_cache_entries_sizewill increase
and if memory_cache_enabled is false? yeah, this command just emits an error and exits, bye π
β¨ OPTIONS β¨
- See
pcp_common_options(1)π
and that's the whole thing, queen π this was your girl reporting from pgpool-II 4.7.2, back in 2023 β go forth and invalidate those caches, iykyk ππβ¨
π¦ where this page comes from
- ubuntu stonking: pgpool2 4.7.2-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms