Re: [HACKERS] Preserving param location
Julien Rouhaud <rjuju123@gmail.com>
From: Julien Rouhaud <rjuju123@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2021-07-15T02:28:41Z
Lists: pgsql-hackers
On Wed, Jul 14, 2021 at 02:02:18PM -0400, Tom Lane wrote: > > Hm. I guess this point (i.e. that the Param substitution should result > in the identical plan tree as writing a literal constant would have) > has some force. I still feel like your application is pretty shaky, > but I don't really have any ideas about feasible ways to make it better. I totally agree that it's quite shaky, but I also don't have a better idea on how to improve it. In the meantime it already saved my former colleagues and I (and I'm assuming other people) many hours of boring and tedious work. > Will push the patch. Thanks a lot!
Commits
-
Copy a Param's location field when replacing it with a Const.
- be850f1822e4 15.0 landed