pgsql: Copy a Param's location field when replacing it with a Const. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Copy a Param's location field when replacing it with a Const.
Date
Msg-id E1m3jPl-0006af-0b@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Fix some nonstandard C code indentation in grammar file