Re: Add a permission check to pg_stat_get_backend_subxact() - Mailing list pgsql-hackers

From shihao zhong
Subject Re: Add a permission check to pg_stat_get_backend_subxact()
Date
Msg-id CAGRkXqRRuYSPpVi2_Ycss3QNYDLFgptX+w3yt_qPaMG+dZAOXg@mail.gmail.com
Whole thread
In response to Re: Add a permission check to pg_stat_get_backend_subxact()  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Add a permission check to pg_stat_get_backend_subxact()
List pgsql-hackers
Hi Michael,

> One approach that may be saner is to store a trace of the PID in
> PgStat_Backend when a new backend connects, then compare it back with
> the existing PGPROC entry, then decide what to show based on the state
> of both.

Thanks for pointing that out.  Applied. 

0001 is unchanged.
Thanks,
Shihao
Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Redesign per-backend statistics
Next
From: Alex Shapalov
Date:
Subject: Re: Proposal: expose heavyweight lock wait start time in pg_stat_activity