Re: pg_stat_statements stores WITH HOLD cursor query with literals

From: Gaurav Singh <gaurav(dot)singh(at)yugabyte(dot)com>
To: Sami Imseih <samimseih(dot)pg(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: pg_stat_statements stores WITH HOLD cursor query with literals
Date: 2026-10-14 06:45:05
Message-ID: CAEcQ1bYf03gGvvZWXCTv2L198zNArFrVoNDNQWecJ_7YmfE6UA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

LGTM! Thank you for the patch.

Warm Regards,
Gaurav Singh

On Wed, Oct 14, 2026 at 7:33 AM Sami Imseih <samimseih(dot)pg(at)gmail(dot)com> wrote:

> > v1 is a sketch of that without any tests yet. I will add if there is
> > agreement on
> > this being the way forward. This seems like the most straightforward way.
> > Maybe others have a different idea.
>
> Attached v2 is cleaned up with a test.
>
>
> --
> Sami Imseih
> Amazon Web Services (AWS)
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Staroverov Ilja 2026-10-14 10:39:50 VACUUM/ANALYZE double-count the backend's own pending table stats (n_live_tup = 2*N after INSERT + ANALYZE)
Previous Message shihao zhong 2026-10-14 03:20:47 Re: PostgreSQL 18.6/17.11: standby PANIC on restart after VM truncation