Re: [HACKERS] Preserving param location

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [HACKERS] Preserving param location
Date: 2021-07-15 02:28:41
Message-ID: 20210715022841.zljv4e3xmvieyas2@nol
Views: Raw Message | Whole Thread | Download mbox | Resend email
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!

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Nancarrow 2021-07-15 02:34:47 Re: Parallel scan with SubTransGetTopmostTransaction assert coredump
Previous Message Michael Paquier 2021-07-15 02:21:43 Re: Remove redundant Assert(PgArchPID == 0); in PostmasterStateMachine