Memoize
Executor node caching inner-side results of parameterized nested loops. Introduced in PostgreSQL 14.
Versions
- PostgreSQL 20 · in-development · improved · moderate · 2 commits · +81 / -47 lines
- PostgreSQL 19 · shipped · improved · moderate · 2 commits · +178 / -37 lines
- PostgreSQL 18 · shipped · improved · moderate · 1 commit · +245 / -9 lines
- PostgreSQL 17 · shipped · improved · moderate · 4 commits · +115 / -23 lines
- PostgreSQL 16 · worked-on · improved · moderate
Threads
- BUG #19944: Memoize caches volatile LATERAL scans across RTE_FUNCTION and RTE_VALUES, returning wrong results
- Reduce memory overheads for storing a Memoize tuple
- Memoize: stale entry pointer after cache_store_tuple()
- BUG #19853: Memoize returns wrong rows when the join operator is hashable but its equality semantics differ from
- [PG19] Wrong results from Memoize with a nondeterministic collation
- BUG #19828: "plan should not reference subplan's variable" with Memoize since f8da64e6
- bug: query returns different result with and without memoization.
- Memoize shows only the last execution's stats for parallel workers
- Cleanup explain_memoize function after test
- Fix "could not find memoization table entry"
- Checking join outer relation uniqueness to prevent unnecessary memoization
- A performance regression issue with Memoize
- Add estimated hit ratio to Memoize in EXPLAIN to explain cost adjustment
- Memoize ANTI and SEMI JOIN inner
- An incorrect check in get_memoize_path
- Remove redundant if-else in EXPLAIN by using ExplainPropertyText
- Memoize in between of two JOIN nodes
- Linux OOM killer
- Volatile functions under Memoize node
- Check lateral references within PHVs for memoize cache keys
- assertion failure at cost_memoize_rescan()
- why memoize is not used for correlated subquery
- "type with xxxx does not exist" when doing ExecMemoize()
- A performance issue with Memoize
- Delay Memoize hashtable build until executor run
- Postgres 16.1 - Bug: cache entry already complete
- [PATCH] Fix memory leak in memoize for numeric key
- Check volatile functions in ppi_clauses for memoize node
- Fix a comment in paraminfo_get_equal_hashops
- Negative cache entries for memoize
- Adjust Memoize hit_ratio calculation
- BUG #17844: Memory consumption for memoize node
- A problem about ParamPathInfo for an AppendPath
- using memoize in in paralel query decreases performance
- Improve LATERAL join case in test memoize.sql
- MemoizePath fails to work for partitionwise join
- Is this an oversight in reparameterizing Memoize path?
- BUG #17512: Process running query fails with SIGSEV - nodeMemoize.c:349
- strange slow query - lost lot of time somewhere
- BUG #17213: Wrong result from a query involving Merge Semi Join and Memoize
- jsonb crash
- v14.0 segfaults on certain memoize query plans
- enable_resultcache confusion
- What to call an executor node which lazily caches tuples in a hash table?
- Hybrid Hash/Nested Loop joins and caching results from subplans
- BUG #17030: ERROR: cannot decompile join alias var in plan tree introduced in pg14beta1
- ResultCache cache error: "cache entry already complete" in 14beta1
- Performance Evaluation of Result Cache by using TPC-DS
- plan with result cache is very slow when work_mem is not enough
- Result Cache node shows per-worker info even for workers not launched
- Hybrid Hash/Nested Loop joins and caching results from subplans
- Subplan result caching