pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [HACKERS] Preserving param location
Date: Wed, 14 Jul 2021 14:02:18 -0400
Message-ID: <3521849.1626285738@sss.pgh.pa.us> (raw)
In-Reply-To: <20210714094645.moaxeqokvnemr2zj@nol>
References: <20170311220932.GJ15188@nol.local>
	<20210627033153.4orlkah2grcnslgi@nol>
	<20210627033539.53gfcixzd3u5yl4j@nol>
	<3441862.1626217284@sss.pgh.pa.us>
	<20210714094645.moaxeqokvnemr2zj@nol>

Julien Rouhaud <rjuju123@gmail.com> writes:
> On Tue, Jul 13, 2021 at 07:01:24PM -0400, Tom Lane wrote:
>> So I'm not really convinced that there's a fully-baked use case
>> here, and would like more detail about how you hope to use the
>> location value.

> As I said I have no doubt that there are other cases which are currently not
> correctly handled, but that's not what I'm trying to fix.  I just want to treat
> parameterized queries the same way as regular queries, thus fixing one obvious
> and frequent case (for which some user did complain), hoping that it will on
> its own already help many users.

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.

Will push the patch.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <3521849.1626285738@sss.pgh.pa.us>
Permalink:  ../3521849.1626285738@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3521849.1626285738@sss.pgh.pa.us

 · 

reply

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rjuju123@gmail.com
  Subject: Re: [HACKERS] Preserving param location
  In-Reply-To: <3521849.1626285738@sss.pgh.pa.us>
  References: <20170311220932.GJ15188@nol.local> <20210627033153.4orlkah2grcnslgi@nol> <20210627033539.53gfcixzd3u5yl4j@nol> <3441862.1626217284@sss.pgh.pa.us> <20210714094645.moaxeqokvnemr2zj@nol> <3521849.1626285738@sss.pgh.pa.us>

* 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