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 <[email protected]>
Reported-by: Tom Lane <[email protected]>
Reviewed-by: jian he <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/flat/CA%2BrenyUte0_UJsJiDJQi82oaBsMJn%3Dcct0Wn%3DvOqXtuDn%3DYYJA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a272a58b94249879c3f7e170a5ebfaeec940d411

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 12 ++++++++++++
src/backend/parser/analyze.c         |  3 ---
2 files changed, 12 insertions(+), 3 deletions(-)

Reply via email to