Move FOR PORTION OF volatile check into planner
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-06-27T11:51:11Z
Releases:
19 (unreleased)
Move FOR PORTION OF volatile check into planner This needs to be wary of the function volatility changing after we check it. We cannot enforce this when checking at parse time, so move it later, into the planner. Author: Paul A. Jungwirth <pj@illuminatedcomputing.com> Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: jian he <jian.universality@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CA%2BrenyUte0_UJsJiDJQi82oaBsMJn%3Dcct0Wn%3DvOqXtuDn%3DYYJA%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/plan/planner.c | modified | +12 −0 |
| src/backend/parser/analyze.c | modified | +0 −3 |
Discussion
- Move FOR PORTION OF checks out of analysis 10 messages · 2026-05-15 → 2026-06-27