Pass cursorOptions to planner_setup_hook.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/plan/planner.c | modified | +2 −1 |
| src/include/optimizer/planner.h | modified | +1 −0 |
Discussion
- pg_plan_advice 219 messages · 2025-10-30 → 2026-06-10