]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Pass cursorOptions to planner_setup_hook.
authorRobert Haas <rhaas@postgresql.org>
Tue, 10 Feb 2026 16:50:28 +0000 (11:50 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 10 Feb 2026 16:50:28 +0000 (11:50 -0500)
commit0f4c8d33d49da012a04076159a008c9fa80bcc47
tree4c72b228de88491ed7c3a37a31f675fee97412de
parentcbdf93d4712229fd82d40d823882a5bc84e407e5
Pass cursorOptions to planner_setup_hook.

Commit 94f3ad3961a2cb32d30c79f01a70db4caff13318 failed to do this
because I couldn't think of a use for the information, but this has
proven to be short-sighted. Best to fix it before this code is
officially released.

Now, the only argument to standard_planenr that isn't passed to
planner_setup_hook is boundParams, but that is accessible via
glob->boundParams, and so doesn't need to be passed separately.

Discussion: https://www.postgresql.org/message-id/CA+TgmoYS4ZCVAF2jTce=bMP0Oq_db_srocR4cZyO0OBp9oUoGg@mail.gmail.com
src/backend/optimizer/plan/planner.c
src/include/optimizer/planner.h