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 1ljeRh-0008PP-KT for pgsql-docs@arkaria.postgresql.org; Thu, 20 May 2021 08:54:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ljeRg-0007Qb-GX for pgsql-docs@arkaria.postgresql.org; Thu, 20 May 2021 08:54:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljeRg-0007QT-Ak for pgsql-docs@lists.postgresql.org; Thu, 20 May 2021 08:54:20 +0000 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ljeRe-00034f-CQ for pgsql-docs@lists.postgresql.org; Thu, 20 May 2021 08:54:20 +0000 Received: by mail-qk1-x731.google.com with SMTP id f18so15389446qko.7 for ; Thu, 20 May 2021 01:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dkqi0vFr7b23RWHkRpAIccbasFVPA7lZKg8pDfX5fW0=; b=Py3DyImdpOWS5LbvvpU9lnPU/zMEEDVoWs2MU9GoEVqMojApKjgjpY5JVofaqXdVGL zORA2X7cOiu4ceV4kxVDJumP5DST6WSFASSHeHSnrTcS4fLiucJ7JyUFnDEHI0atS2wn OH5OSwsZKoqOjRCJtsvJcqkFeW7pqHJAA1EeacGL+oiaFptKZtaIdgX8viBBu6gO5wAi 6GsGcCsvbAKOUp7FqW3imwkG4vHjH56ddcfsQDCjOdxFvF+iXX4dAqjWhQ4G/pP+XUx+ yryB2Sv+tItHhUEwMBVoRa0hgYXoZV1bj5ybSuNam/a3hjF4fyX5RW+V4mqla/uJ5Mdz CdxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dkqi0vFr7b23RWHkRpAIccbasFVPA7lZKg8pDfX5fW0=; b=DrYnQvtZ+2mEIIjm5zziDPGT3n7ou/6xEGgeSSie1ul+WTyZJibgNRinHAndKE/hS0 g+Y8wwKwSxvBf76jywnzsMEgfk09/NjMRPCaNde8yFYm4fD7vcFVBQxFLWvcN0eVJrxM cpFjNFmMPPR1P+UUe63HbZz+zFRfx0vn8PJBfJnWHvMik9Hu6dAeeAguKmXi7WYMLDKg Aibns4f6mcDp8s9OGTlt1tpDmkbNEaaGQcs2tPohKbHMLGDSNPdqalNHuyAOAe0ydJQT b+UwHf7sn5H6imkOSKmpdGrG4lD6BsyWgOqFIpp7ykYeG0mE+dVY1DIdL7u3E4/tv+kw 3j5w== X-Gm-Message-State: AOAM532sMrIOZ8MAJ+jMaDTn0IfldYbm+r3tr4Rh5qXSMJj7aEVTYn9N tWmN5SiUzKlAH0IAls9/eOYWdbaDimWeI2ORyQJD7Y1p X-Google-Smtp-Source: ABdhPJycELTxpqxhDX/t8Nr+KiDgWcXMvmxJyd6IjuzALK0ulCC6IWf+ZVc5beKUbN7D6IRE3SW4/BvfHgVFJM45zzo= X-Received: by 2002:a37:b947:: with SMTP id j68mr3631212qkf.108.1621500856692; Thu, 20 May 2021 01:54:16 -0700 (PDT) MIME-Version: 1.0 References: <162149110071.26171.15811576640435665698@wrigleys.postgresql.org> In-Reply-To: From: Julien Rouhaud Date: Thu, 20 May 2021 16:54:27 +0800 Message-ID: Subject: Re: pg_monitor role description To: Michael Paquier Cc: pluzanov@postgrespro.ru, pgsql-docs@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 20, 2021 at 3:01 PM Michael Paquier wrote: > > On Thu, May 20, 2021 at 06:11:40AM +0000, PG Doc comments form wrote: > > "This role is a member of pg_read_all_settings, pg_read_all_stats and > > pg_stat_scan_tables." > > Is it correct sentence? > > It seems for me that pg_read_all_stats is a member of pg_monitor. But not > > vice versa. > > Here is what I am getting: > =# \dgS pg_monitor > List of roles > Role name | Attributes | Member of > ------------+--------------+-------------------------------------------------------------- > pg_monitor | Cannot login | {pg_read_all_settings,pg_read_all_stats,pg_stat_scan_tables} > > =# \dgS pg_read_all_data > List of roles > > Role name | Attributes | Member of > ------------------+--------------+----------- > pg_read_all_data | Cannot login | {} > > So the docs look correct to me. Indeed. In other words pg_monitor is the sum of the authorizations given by all those roles.