From: | Julien Rouhaud <rjuju123(at)gmail(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Hannu Krosing <hannuk(at)google(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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-24 15:20:49 |
Message-ID: | 20210324152049.cjv2op3jsgauutwv@nol |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Mar 24, 2021 at 08:13:40AM -0400, Bruce Momjian wrote:
> On Wed, Mar 24, 2021 at 04:51:40PM +0800, Julien Rouhaud wrote:
> > > but if you do that it'd be better to avoid
> > > introducing a function with one name and renaming it in your next
> > > commit.
> >
> > Oops, I apparently messed a fixup when working on it. Bruce, should I take
> > care of that of do you want to? I think you have some local modifications
> > already I'd rather not miss some changes.
>
> I have no local modifications. Please modify the patch I posted and
> repost your version, thanks.
Ok! I used the last version of the patch you sent and addressed the following
comments from earlier messages in attached v20:
- copyright year to 2021
- s/has has been compute/has been compute/
- use the name CleanQuerytext in the first commit
I didn't change the position of queryid in pg_stat_get_activity(), as the
"real" order is actually define in system_views.sql when creating
pg_stat_activity view. Adding the new fields at the end of
pg_stat_get_activity() helps to keep the C code simpler and less bug prone, so
I think it's best to continue this way.
I also used the previous commit message if that helps.
Attachment | Content-Type | Size |
---|---|---|
v20-0001-Move-pg_stat_statements-query-jumbling-to-core.patch | text/x-diff | 60.7 KB |
v20-0002-Expose-queryid-in-pg_stat_activity-and-log_line_.patch | text/x-diff | 34.8 KB |
v20-0003-Expose-query-identifier-in-verbose-explain.patch | text/x-diff | 5.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2021-03-24 15:29:09 | Re: default result formats setting |
Previous Message | torikoshia | 2021-03-24 15:17:53 | Re: Get memory contexts of an arbitrary backend process |