Skip to content

docs(general): document query_cache_memory_limit and query_cache_idle_timeout - #103

Draft
IgorOhrimenko wants to merge 2 commits into
pgdogdev:mainfrom
IgorOhrimenko:docs/query-cache-memory-limit-ttl
Draft

docs(general): document query_cache_memory_limit and query_cache_idle_timeout#103
IgorOhrimenko wants to merge 2 commits into
pgdogdev:mainfrom
IgorOhrimenko:docs/query-cache-memory-limit-ttl

Conversation

@IgorOhrimenko

@IgorOhrimenko IgorOhrimenko commented Aug 1, 2026

Copy link
Copy Markdown

Documents the two [general] options added in pgdogdev/pgdog#1266:

  • query_cache_memory_limit — byte budget for the query (AST) cache, LRU eviction once the summed entry size exceeds it; complements the count-based query_cache_limit.
  • query_cache_idle_timeout — idle timeout in milliseconds; entries not accessed within the window are dropped by the maintenance sweep.

Both default to 0 (off). Adds reference entries in the general config page (the anchors the code's doc-comments link to) and the two rows in the SHOW CONFIG table.

Companion to pgdogdev/pgdog#1266 — should merge together with it (or be closed if that PR is declined).

Adds reference entries for the byte-based query cache memory budget and
the idle-expiry TTL (pgdogdev/pgdog#1266), plus SHOW CONFIG table rows.
…lliseconds)

Follows the rename in pgdogdev/pgdog#1266: the behaviour is idle
expiry (counted from last access), so the option reuses the existing
idle-timeout naming and the millisecond unit of the other *_timeout
options.
@IgorOhrimenko IgorOhrimenko changed the title docs(general): document query_cache_memory_limit and query_cache_ttl docs(general): document query_cache_memory_limit and query_cache_idle_timeout Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant