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 1up8OQ-00HFec-M3 for pgsql-general@arkaria.postgresql.org; Thu, 21 Aug 2025 16:44:04 +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 1up8OO-0005oq-Jg for pgsql-general@arkaria.postgresql.org; Thu, 21 Aug 2025 16:44:01 +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 1up8OO-0005oi-8i for pgsql-general@lists.postgresql.org; Thu, 21 Aug 2025 16:44:00 +0000 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1up8OM-00131j-12 for pgsql-general@lists.postgresql.org; Thu, 21 Aug 2025 16:43:59 +0000 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-61c1312553cso327114eaf.3 for ; Thu, 21 Aug 2025 09:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755794638; x=1756399438; darn=lists.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=9Qr/fG/Sw5Vg8r7+xXIvsNwprCsW00KQv18CsbSEHaA=; b=ZLup55PHczYHhcCxB3gaU7ZHb86VATDobWU5Bk0Nbjv1jtOzXhpox1dyGNzsjyK+Sb VKDxtyoIRYpzpwWa8ya/e4Xv78xKqsuksfzQ4R8cx1bQCzjfU+S3wFmXJujR4YKg/73f 1ZZgXxR+cDHV80PM6ySXTiAmz6PD28ISLepZBX76Tj9Vd0RBmnTx2A4ktfACMkfX/YPI /GfL0ivmOJ6DCnpNjuYy3aU26pYy+Oq47u80sSRrUJgqjPyUGZ3VYuiGltZx1Mr9VAz3 dJuxENu7pZMURPzJEhRNjq4x4BoNY02aVgq6+RD2aUQMJs5k+LCohyYxJ6vWDvyCKFbr lilg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755794638; x=1756399438; 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=9Qr/fG/Sw5Vg8r7+xXIvsNwprCsW00KQv18CsbSEHaA=; b=Dpa9TY2PFEbv3lUkGnY4OIny0JyUUpwozEWxIwpPDiECaKqfTEj9k9TxMx2aBeWHGJ z7+h7LYt+WzhiXwObUAEglH28Sw7qwYiPR5V3C6gnsynHSxyL4kGWFDsZeju3ObpJ0mr nCkaEBQAirg0an2CcDQpExG35rZMiNswMsewJjWXhzW8EEknZ8pKRr/eL597aOZ3ULs5 hEVzoN5ySgh9h7W8ODmL3cmwwfp6FO7fOBElIkofI6Gfu/WZ1k24klVOW1ISoFhQaZtW mO0Pibi3U01O+9IFPOeSme0oKok4ldJCOPVg2Cu2sCXdviHorTlZfCwLrU76ves34T+l shbw== X-Gm-Message-State: AOJu0Yyu4i3t/3Fau4oeWHswRLqZhOBIilX9Xq9qrsGVG/B5Y3lkcUqQ eziY7ZFueElEukvP7qaxwZRVlJTAFGpx9hqNSQS8EkW6fmWF0TcPCkGUM7ibnDbG9usANM4+dDz 9/eu0XGtXlVuQimLcwshe3GOTMuzQ4g4= X-Gm-Gg: ASbGnctO/kge60+dzZmIlHrN2kbpqvBRP2E1qhVvBxxTNs3wEW1udtcN8fyAgPpzs0q vHxIr5ksF1+W66QtFGPndvO5beOoBXS88T7Ly14NV/3QCkKgQypfg6rc6RVvTSjE3jIANw7SPJT goMHuMb6JK7UoL7eSaFfLdy/Lrxf/ygt6D5viuDCHBQo4a+jdTHeMkx6yzna2DJP0GVhVkoXmuG qEGDoEhKA== X-Google-Smtp-Source: AGHT+IFH1Zszwkzq05w9x0rFniLyX/7SHYpFllvZj8Qhv3bCJ5aoWA2AXAZhEwFnEsVwH/RhCA/0mJdPLFgoVzDJYDs= X-Received: by 2002:a05:6808:1a18:b0:42c:f363:1c0e with SMTP id 5614622812f47-4378526ce78mr82604b6e.3.1755794638293; Thu, 21 Aug 2025 09:43:58 -0700 (PDT) MIME-Version: 1.0 References: <3662a9b9-3e58-4977-8bd1-e1ed0e25b2a8@aklaver.com> In-Reply-To: From: Dominique Devienne Date: Thu, 21 Aug 2025 18:43:47 +0200 X-Gm-Features: Ac12FXximIg1pvTzqtra_Ul-DwMGxrKA8gB7ixOrx05iPWIIN2wgTLG1sN3h61A Message-ID: Subject: Re: Q: GRANT ... WITH ADMIN on PG 17 To: Karsten Hilbert Cc: pgsql-general@lists.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 Thu, Aug 21, 2025 at 6:37=E2=80=AFPM Karsten Hilbert wrote: > Am Thu, Aug 21, 2025 at 06:29:36PM +0200 schrieb Dominique Devienne: > > > Thanks, I did, but did not find the answer to: Is there a > > > way for a role that can manage membership in a group role to > > > not itself be a member of that group role ? > > > > Yes and no. Depends what you mean by MEMBER... > ... > > So I didn't spend time studying your specific use case. That's your job= :). > > But given my painful experience of the past year, I'd answer yes to you= r > > question, on logical grounds. If you see what I mean. --DD > > I followed your posts back then when you worked out your use > case so I did have _some_ idea where to look ;-) Glad it helped someone, maybe. > I just wanted to confirm my understanding in relation to my > current usage. David kindly provided the needed affirmation. Well, I disagree with David that you're a MEMBER with just ADMIN. pg_has_role(..., 'MEMBER') says yes. But pg_has_role(..., 'SET') says no. If you can't endorse the role's privileges, you're not a member in my book. That was kinda my point. --DD