From: Julien Rouhaud <rjuju123@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Subject: Re: [HACKERS] Preserving param location
Date: Sun, 27 Jun 2021 11:31:53 +0800
Message-ID: <20210627033153.4orlkah2grcnslgi@nol> (raw)
In-Reply-To: <20170311220932.GJ15188@nol.local>
References: <20170311220932.GJ15188@nol.local>
On Sat, Mar 11, 2017 at 11:09:32PM +0100, Julien Rouhaud wrote:
>
> When a query contains parameters, the original param node contains the token
> location. However, this information is lost when the Const node is generated,
> this one will only contain position -1 (unknown).
>
> FWIW, we do have a use case for this (custom extension that tracks quals
> statistics, which among other thing is used to regenerate query string from a
> pgss normalized query, thus needing the original param location).
rebased v2.
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: rjuju123@gmail.com
Subject: Re: [HACKERS] Preserving param location
In-Reply-To: <20210627033153.4orlkah2grcnslgi@nol>
References: <20170311220932.GJ15188@nol.local> <20210627033153.4orlkah2grcnslgi@nol>
* 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