Re: pg_stat_statements: Fix normalization of + signs for FETCH and MOVE - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: pg_stat_statements: Fix normalization of + signs for FETCH and MOVE
Date
Msg-id ah0hbY0v8zwJZU0R@paquier.xyz
Whole thread
In response to pg_stat_statements: Fix normalization of + signs for FETCH and MOVE  (Chao Li <li.evan.chao@gmail.com>)
Responses Re: pg_stat_statements: Fix normalization of + signs for FETCH and MOVE
List pgsql-hackers
On Mon, Jun 01, 2026 at 01:33:40PM +0800, Chao Li wrote:
> As shown above, the "+" sign is replaced separately from the
> integer. However, a "-" sign is handled correctly:
> ```
> We just need to handle "+" in the same way. See the attached patch for details.

This is not directly related to FETCH and MOVE.  For example:
=# select +1;
 ?column?
----------
        1
(1 row)
=# select query from pg_stat_statements where query ~ 'select';
   query
------------
 select +$1
(1 row)

I don't recall somebody complaining about that..
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: Add wait events for server logging destination writes
Next
From: liu zhilong
Date:
Subject: [PATCH] doc: explain database-wide impact of old xmin on VACUUM