Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, torikoshia <torikoshia(at)oss(dot)nttdata(dot)com>, Atsushi Torikoshi <atorik(at)gmail(dot)com>, Tatsuro Yamada <tatsuro(dot)yamada(dot)tf(at)nttcom(dot)co(dot)jp>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Evgeny Efimkin <efimkin(at)yandex-team(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?
Date: 2021-03-02 03:43:31
Message-ID: CAOBaU_YzqYgsSoxbgiUycCFNS_rVtLhnVOe8V52FpgzFn_ocPA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jan 20, 2021 at 12:43 AM Julien Rouhaud <rjuju123(at)gmail(dot)com> wrote:
>
> On Fri, Jan 8, 2021 at 1:07 AM Julien Rouhaud <rjuju123(at)gmail(dot)com> wrote:
> >
> > v15 that fixes recent conflicts.
>
> Rebase only, thanks to the cfbot! V16 attached.

Recent commit exposed that the explain_filter() doesn't filter
negative sign. This can now be a problem with query identifiers in
explain output as they use the whole bigint range. v17 attached fixes
that, also rebased against current HEAD.

Attachment Content-Type Size
v17-0003-Expose-query-identifier-in-verbose-explain.patch text/x-patch 6.5 KB
v17-0002-Expose-queryid-in-pg_stat_activity-and-log_line_.patch text/x-patch 36.1 KB
v17-0001-Move-pg_stat_statements-query-jumbling-to-core.patch text/x-patch 58.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2021-03-02 04:01:52 Re: REINDEX backend filtering
Previous Message walker 2021-03-02 03:35:42 psql crash while executing core regression tests