agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move FOR PORTION OF volatile check into planner
Date: Sat, 27 Jun 2026 11:59:39 +0000
Message-ID: <E1wdRhD-000PFu-2P@gemulon.postgresql.org> (raw)

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%3DYY...

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(-)



Message-ID: <E1wdRhD-000PFu-2P@gemulon.postgresql.org>
Permalink:  ../E1wdRhD-000PFu-2P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wdRhD-000PFu-2P@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Move FOR PORTION OF volatile check into planner
  In-Reply-To: <E1wdRhD-000PFu-2P@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox