From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Copy a Param's location field when replacing it with a Const.
Date: Wed, 14 Jul 2021 18:15:21 +0000
Message-ID: <E1m3jPl-0006af-0b@gemulon.postgresql.org> (raw)
Copy a Param's location field when replacing it with a Const.
This allows Param substitution to produce just the same result
as writing a constant value literally would have done. While
it hardly matters so far as the current core code is concerned,
extensions might take more interest in node location fields.
Julien Rouhaud
Discussion: https://postgr.es/m/20170311220932.GJ15188@nol.local
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/be850f1822e4b54d1d570eefa8a7242788011634
Modified Files
--------------
src/backend/optimizer/util/clauses.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Copy a Param's location field when replacing it with a Const.
In-Reply-To: <E1m3jPl-0006af-0b@gemulon.postgresql.org>
References: <E1m3jPl-0006af-0b@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox