Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ssicW-00ANZZ-45 for pgsql-general@arkaria.postgresql.org; Mon, 23 Sep 2024 12:56:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ssicV-008PqN-1N for pgsql-general@arkaria.postgresql.org; Mon, 23 Sep 2024 12:56:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ssicU-008PqF-Mk for pgsql-general@lists.postgresql.org; Mon, 23 Sep 2024 12:56:50 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ssicS-000eBP-CR for pgsql-general@postgresql.org; Mon, 23 Sep 2024 12:56:49 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-53655b9bbcdso4907189e87.2 for ; Mon, 23 Sep 2024 05:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727096207; x=1727701007; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2Bqa/IDSz/JMf33ifZUfr8+uyt88YVlaJjSn2h8LLVk=; b=azMBEmKqSzETHm9uqPAFZRTkMoXkRJMy9hby2CIsUPh4vOPGUB5zKSxDDmReNyYS44 egYMQUudbQaGCdl60BXtPId0fM0yvbuURfSogE0MPEMmr92GLUqnvgsVCCcsdPyqVq6Q zfFNswUhIhLkhADBkR5RrZhth/bo66nNsk54UBvoxV8+ygmVg9geJlfTSovscry1jcui XflDFU4DdvHje7crXVbd07xuQbRDQzwg2lMV3gWSGZHy/2WeZyO+3egKJMjmQX9ESHR9 6f+lIB+8qD5CKf7+XiiBjvFB9v/Wz4rEHXqS+McyQo4mpuKBccOOzQE6jrYqj/ZDTxZs 3FAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727096207; x=1727701007; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2Bqa/IDSz/JMf33ifZUfr8+uyt88YVlaJjSn2h8LLVk=; b=ZKlBDdcie6zHZV33SalqNrcFYxq3jVzimzb8ymslcfqaA44gPky0FkhvoPeHIgh2sS V4j5osOY4798oBl2VZW4fU39xHtPWl7zirhhuW4IOPSqpX0quQdzkynMTBvfgFfMyjUE fUxGINDHIYUJWwy/7xu+bJUr3huGcTFYwgsAb93q/eOEVhoB66mAnIN1qmkWI+xKhipz 05tcYqEHWQ6ox5qn8a004jh87L9Qru8MAOIDPpE1BmTSTeif+/ZqXAbwlkTO8ZUyxdGy vOZJVDbXzzpRx49fV51WVcvd+ST5ie+Vq4ybjUg99MjzSD/YXKRCqJAOljU9L6xCJvOv 1kuQ== X-Forwarded-Encrypted: i=1; AJvYcCXVlo4b2x9QE4PGIVzGkpP5Zw0ejQDM0bPMh/3/JHNUKTUckQZQd3IwEkwzJNEpQQVyiag4cmaxl9rV1Uo1@postgresql.org X-Gm-Message-State: AOJu0YwXA8PKvu09mKQbIbRZKN4tCm8bxkSO2P4zyXe56xmMq0QS+sBc 0sYJPlNWZZlCd3fXCRbDml0JnQ55Jb80jZWWCRyAkmbVrQnD708uM5jONmvet4FgxRwPa9Uqrxo mquzcu5xmYMm5iEFBKn6uoquzaH8= X-Google-Smtp-Source: AGHT+IFdZ3RsCVzmvenNdwMY732WnW5mEB4O3Rdsb9I4ZgfWTS5cRHFfSbkYseSEYRQD2AyPQc9arEnoYw/5nUvGDO8= X-Received: by 2002:a05:6512:2244:b0:52f:154:661b with SMTP id 2adb3069b0e04-536acf6acf4mr5551100e87.11.1727096206484; Mon, 23 Sep 2024 05:56:46 -0700 (PDT) MIME-Version: 1.0 References: <42cf78d42a376bf05ca9f5776ad29edc30e784d5.camel@cybertec.at> <2468702.1726856198@sss.pgh.pa.us> <2470834.1726857267@sss.pgh.pa.us> In-Reply-To: From: Dominique Devienne Date: Mon, 23 Sep 2024 14:56:33 +0200 Message-ID: Subject: Re: Why no pg_has_role(..., 'ADMIN')? To: Robert Haas Cc: Tom Lane , Laurenz Albe , pgsql-general@postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Sep 20, 2024 at 8:49=E2=80=AFPM Robert Haas = wrote: > On Fri, Sep 20, 2024 at 2:34=E2=80=AFPM Tom Lane wrot= e: > > I'm now inclined to add wording within the pg_has_role entry > I don't have an opinion about the details, but +1 for documenting it +1 as well. Especially since I now recall, in hindsight, about reading the *distant* mention about 'WITH ADMIN OPTION' that could be added, but still forgot about it when reading only the *immediate* doc on pg_has_role(). My $0.02. --DD