Delay build of Memoize hash table until executor run
authorDavid Rowley <drowley@postgresql.org>
Mon, 29 Jan 2024 23:37:03 +0000 (12:37 +1300)
committerDavid Rowley <drowley@postgresql.org>
Mon, 29 Jan 2024 23:37:03 +0000 (12:37 +1300)
commit57f59396bb51953bb7b957780c7f1b7f67602125
tree65629db9f1f7ca06f1f1bd7685f1e3423275621a
parentc85977d8fef7b18f69e0be72923ddb8dcc8165b5
Delay build of Memoize hash table until executor run

Previously this hash table was built during executor startup.  This
could cause long delays in EXPLAIN (without ANALYZE) when the planner
opts to use a large Memoize hash table.

No backpatch for now due to lack of complaints.

Author: David Rowley
Discussion: https://postgr.es/m/CAApHDvoJktJ5XL=Kjh2a2TFr64R-7eQZV-+jcJrUwoES2GLiWg@mail.gmail.com
src/backend/executor/nodeMemoize.c