Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1izEav-0004HU-Rq for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Feb 2020 06:55:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1izEau-00083a-Iz for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Feb 2020 06:55:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1izEau-00080p-6V for pgsql-hackers@lists.postgresql.org; Wed, 05 Feb 2020 06:55:28 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1izEap-0008Ad-KK for pgsql-hackers@lists.postgresql.org; Wed, 05 Feb 2020 06:55:26 +0000 Received: by mail-wm1-x32c.google.com with SMTP id s10so1146417wmh.3 for ; Tue, 04 Feb 2020 22:55:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zjSPOsQ+nYuafrUWomUNqoRMP+dun81XtrdgYT57e4E=; b=n/VTbEgF9drYPypQmL6668/LojT9C+/Rh3C9qQAln24SCrPirkkRadbwwIfSswJ9du RdcXJYugg9xlCpn55gAJZrXDC61Kda7smkzIGCzqa3s+ejPJD47BjiMKov3CSnu75iLT C9/C5GXj/EgWZAITLaBGRFABaGR8pkgNCCaXfwEE3gOimSOrs7+9JYRyMBW2zGmglSm7 /scySgFWLxMefEjoGjrc2Qkgppu3WZjwNf2rXtbJUwQCHydGjxDsCygflTohJF1nlAH1 tdw0iXqk1r+m+hvCJQgO0tMZlKbQZ4XecwmBbkNkfmG9+gHYFsdyD5Uv8Ceycqfd9KLn l9dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zjSPOsQ+nYuafrUWomUNqoRMP+dun81XtrdgYT57e4E=; b=A5wBSZsugVYH9h3p7B+k3giEbf/r6febL1fvJ6VGMRi59hQ2c3Bds+q+8rqF/vBSs9 yaA+q4/GI7HVZmQOfClkTkc9I1fhRBRrQL2HbbhalkXf07XG3jhpQMn1AqmnfeNPI9VL QQH5fqF8FTZ8/3UD3uV5a8lYLSBfIJYNnBDlYHztBxaVpoz4gZ7KkH5afd0zGQI79f+0 mjvSN8BqpgOLuX89dXXphSn4mJoNlcVBZyGppfdUuafOOTHq4l3T12qWvNfu3b2kSMwZ hdZdt6tBTtlwTQ/TpqqjRGsHdGNQW0WANmpf6X+9Z7xYrh2ACyLHV5Dfn0XQCMH6z+Z4 Q5vQ== X-Gm-Message-State: APjAAAWVhQd4abXPJz5Ni/74RkaJuT2ha97CP3uitYRg2aPbyhLI0tbE ejD9AL8nAUPBz9lJr4uTqTQo71qfYuTxRA== X-Google-Smtp-Source: APXvYqwkbxT+7bP/xKDN3zIBxZsTYnjY4khhbGjCNRx3dR3ly/sy1VNBXod2Y02CzLc7DySZzN3QNg== X-Received: by 2002:a7b:ce98:: with SMTP id q24mr3650140wmj.41.1580885722168; Tue, 04 Feb 2020 22:55:22 -0800 (PST) Received: from nol ([2a01:e0a:c:bcf0:dbc8:f7e9:89ae:5cd7]) by smtp.gmail.com with ESMTPSA id l29sm9958181wrb.64.2020.02.04.22.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 22:55:21 -0800 (PST) Date: Wed, 5 Feb 2020 07:57:20 +0100 From: Julien Rouhaud To: Michael Paquier Cc: Tomas Vondra , Sergei Kornilov , Guillaume Lelarge , PostgreSQL Hackers Subject: Re: Expose lock group leader pid in pg_stat_activity Message-ID: <20200205065720.GA31242@nol> References: <20200116074912.GA98418@paquier.xyz> <20200118025102.GB230692@paquier.xyz> <20200128130910.anay3mlhaminob6w@development> <20200128135208.6tnr72gamv2dr262@development> <20200130130301.GC130922@paquier.xyz> <20200204142725.GA30965@nol> <20200205014831.GC23913@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200205014831.GC23913@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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!