Re: Expose lock group leader pid in pg_stat_activity
Julien Rouhaud <rjuju123@gmail.com>
From: Julien Rouhaud <rjuju123@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>, Sergei Kornilov <sk@zsrv.org>, Guillaume Lelarge <guillaume@lelarge.info>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-02-05T06:57:20Z
Lists: pgsql-hackers
On Wed, Feb 05, 2020 at 10:48:31AM +0900, Michael Paquier wrote: > On Tue, Feb 04, 2020 at 03:27:25PM +0100, Julien Rouhaud wrote: > > I added some code comments to remind that we don't guarantee any consistency > > here. > > That's mostly fine. I have moved the comment related to > AuxiliaryPidGetProc() within the inner part of its the "if" (or the > comment should be changed to be conditional). An extra thing is that > nulls[29] was not set to true for a user without the proper permission > rights. Oh, oops indeed. > Does that look fine to you? This looks good, thanks a lot!
Commits
-
Fix typo in proc.c
- 5ac4e9a12c65 13.0 landed
-
Add leader_pid to pg_stat_activity
- b025f32e0b5d 13.0 landed