pgsql: Copy a Param's location field when replacing it with a Const.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Copy a Param's location field when replacing it with a Const.
Date: 2021-07-14 18:15:21
Message-ID: E1m3jPl-0006af-0b@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2021-07-14 22:15:23 pgsql: Fix some nonstandard C code indentation in grammar file
Previous Message Tom Lane 2021-07-14 16:07:07 Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.