Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsvOI-0001v3-Gh for pgsql-hackers@arkaria.postgresql.org; Sun, 22 May 2022 23:53:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nsvOG-0005ry-JI for pgsql-hackers@arkaria.postgresql.org; Sun, 22 May 2022 23:53:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsvOE-0005ro-R5 for pgsql-hackers@lists.postgresql.org; Sun, 22 May 2022 23:53:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsvO9-0004CT-Ap for pgsql-hackers@postgresql.org; Sun, 22 May 2022 23:53:37 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EC3625C011B; Sun, 22 May 2022 19:53:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 22 May 2022 19:53:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1653263611; x=1653350011; bh=YkhLGhsI4V lEK6nC9Y/3bxAlVi65gQDxneNBAZhkkEw=; b=VO+Pr3agB+3RzFAIgIRXPzULuY 7eg9mjLhUa1UwlF2jQc/VuOlpqIXKg8km8dmIpjUwSva5MXb7oOq682wOS+fNCwe /4EKTv0W28Yc6lS0A4KHLlg9wMNnoCZvS2dathZgn0s5qMOsMBN2yeV358xe8FDa QZgwEZTv/cdK0slhXuyyne0s03VgIb1ttmG28O/d2zVj6QxETqgvUTcpGH/guHOX 1vNHET6Hu7+ToVsVrgCJxoa2RM/exyIg0AJC+RpKU1hju931Fe3mWsAR4nBs1nxI EvXOiD7kyybAOoNI1qdewu96hoPMbP18uAOKwp5/Wpc70KXCs2GEoO166PjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653263611; x=1653350011; bh=YkhLGhsI4VlEK6nC9Y/3bxAlVi65 gQDxneNBAZhkkEw=; b=BKyl914qYEe9kCZJvmru8b4K1hn6yw/jgr8jlBwdLIZU ezZBWaQUOJim97TwPl66KHWKCEteXQ1oQsmI1srcHZs+f5p8/IeJVMp0orKJuGwA 4TiD/JhNSBmcEnJBV0jzSsO5MAZkq+7xrPb1pEp0Y8ntnnGTpMJsldIJVK31TrE2 AhC3sGEQYo0UAGHfsQvPINr+pSIvctgYeGdJR/v16cPPuWMMujCeW3wRjHhnFvYR 5CiGSfAFi1iwYvkkBqVLaRrkoKfUYm0BJ0N6d9e9kbpa8QoHlaN5Au4Y4nQ+9z1m XW/MvCicec+PGxPRFxhGypHggNKwUieudz/kl51uCg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrieelgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 22 May 2022 19:53:30 -0400 (EDT) Date: Mon, 23 May 2022 08:53:24 +0900 From: Michael Paquier To: Nathan Bossart Cc: Ian Lawrence Barwick , pgsql-hackers Subject: Re: docs: mention "pg_read_all_stats" in "track_activities" description Message-ID: References: <20220520230837.GB877934@nathanxps13> <20220521185743.GA886636@nathanxps13> <20220522202608.GA892371@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Wc7bo7qgprD1Vfn9" Content-Disposition: inline In-Reply-To: <20220522202608.GA892371@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Wc7bo7qgprD1Vfn9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 22, 2022 at 01:26:08PM -0700, Nathan Bossart wrote: > Yeah, this crossed my mind. I thought that "superusers, roles with > privileges of the pg_read_all_stats_role, roles with privileges of the us= er > owning the session being reported on, and the user owning the session bei= ng > reported on" might be too long-winded and redundant. But I see your point > that it might be a bit confusing. Perhaps it could be trimmed down to > something like this: >=20 > ... superusers, roles with privileges of the pg_read_all_stats role, > and roles with privileges of the user owning the session being reported > on (including the session owner). Yeah, that sounds better to me. monitoring.sgml has a different way of wording what looks like the same thing for pg_stat_xact_*_tables: "Ordinary users can only see all the information about their own sessions (sessions belonging to a role that they are a member of)". So you could say instead something like: this information is only visible to superusers, roles with privileges of the pg_read_all_stats role, and the user owning the sessionS being reported on (including sessions belonging to a role that they are a member of). -- Michael --Wc7bo7qgprD1Vfn9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmKKzPQACgkQnvQgOdby QH36Xg/+JAqalAfMMitlZIqR2kLxiRwVEIzX6F8lC8Lw9jVDj8ge4V+amMUbGQ4f LKw7+CjKWk7AHV8GIUZVj4DGfVAU91iy83jq+F+5XtHBPmYXo2+EkS9fCDOcMp3O QnuCL82Y6l58TbVWwEsNZPzw67U0fYeLroGjbcK775xPNzdF5dLkaV9263ESMp9F l8yT10nD12kUWUYwVPMiZBodWnI3ycwiiWuOUtvxBQz9cLLZsIQpj/ffpNAhwFL9 EaUOiYjUU8L7xgoiEW/XpAYLIa3AskYiIJRjegGUPvZjIoyNREchxlFOZv0W0HVn Ab3W3rLDjwcvEjBtdHb8bp5zefSUPBrYCVrf3N9W8Z2g8WBYKUbzgzPsoJm5dHB1 dkoKofucpWjUQgUnpzQlw3xAHxYqEgmwSRFzASnpGoZ5C7uQlEIyoeCFce0kBkUp 1xMTPte48q4lq0QILPCSGI5XdsbgpfpxGFU+Fx6Hfk09nzZOl+nbMuPEjkpEdDva I6DzEs3bpjnjeq9HAYe3jZc54TikuOZHxKzR6zcYcEsTgrUrvJhyOM7EhSswjSm7 neILAN8c8BAoQpzVBP/coYSDc1jEQuRxpQJF3kxBt7s7t8pqzJBHqUtFjnfdwiad OSVbAPODe9IS0fH/eS8EzxbTuBsnc1UmUKkQhR3jdfPNbNvog7Q= =WWp1 -----END PGP SIGNATURE----- --Wc7bo7qgprD1Vfn9--