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 1soPBM-00B1IU-Kz for pgsql-general@arkaria.postgresql.org; Wed, 11 Sep 2024 15:23:01 +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 1soPBM-002XCb-Aa for pgsql-general@arkaria.postgresql.org; Wed, 11 Sep 2024 15:23:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1soPBL-002XCT-Vn for pgsql-general@lists.postgresql.org; Wed, 11 Sep 2024 15:22:59 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1soPBE-000fIy-Gr for pgsql-general@lists.postgresql.org; Wed, 11 Sep 2024 15:22:59 +0000 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3e03a5ed4d7so970842b6e.1 for ; Wed, 11 Sep 2024 08:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726068172; x=1726672972; 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=ut6gIZ+eqgIA89txZLO9sik2tb2xf6nZgbL/MALLTeQ=; b=Oobkf2IVjCsjZZ9vix5lneYJ3Wg43OJI0JpEvJPealtuxLNsfCuDIpqQaP345F9B9p 1mo/b0k2EYmOA3xMhCmb1cpaSh9B/Dso5JEZG+LQ/pnP6bO578mDETUbLHMITsiwKm56 0wqehyoZ4RYqDHeygjPVCAbJL9VJEd/unAkZnG9HnBDCdS+ghj2ufD/hjpsjZz7G2WLC DOx3yefGkvWyBwRTpLLuhLuq0GPRYxHIDFirqEzcaaLyv4iact1UOA76N7XOOMs9xusj xQVOEvg5iXeR+YA3NCWOjfsaTkzxqc4tjRjUblpPnWiunx+JTBFw/9njoPZZxZJ/E9Ed Km6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726068172; x=1726672972; 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=ut6gIZ+eqgIA89txZLO9sik2tb2xf6nZgbL/MALLTeQ=; b=ub8LKIVtktjivHKjVEwQ8dVjpxegTYA2WUj7SXppp/gleYftV7H/13f0ZXTrB4T2yz bkHxShgNqmAUgJ2+IHPUfOXm42cWj+Tpo5gYj0NWXKCSCz5aSZncthLntAxsYt/tsYMC I+kjcCSvJsC8cQ0GlCciK8j9DShkXaTcArO8VgXgeYv4hKf9d1hYTMjVUQcL6GQxRJ7o /GPYyBNtLs2gTKxfszQUV60U461pTywj3eEwyLIChMy80XLrYjHUumW2wL8p7kSlvH2G JAqyD+AP3KuoA8tSmSySEpRcTTyYMy3TuKxUrpEZ08JBBv5ALvFQJBUBuJXGqpFdgzjL nBKg== X-Gm-Message-State: AOJu0YyxCAikmnqaxKGGSPXQQZkxgU/KEuJkSEjiBFC5t9pV7EwTdDKY fElXQWe2h6PDYyXJqr1dtstu49JTipdkmuEkGr/iDZ+P5nOPpd/JBiKYJ6XZE+ow58k0cBOiPnj 2T7VVoN1+j2vBEpJN1Q+MH49twoM= X-Google-Smtp-Source: AGHT+IGfx+VG7ZfFGGt/fsNcOD9ppCKNyG5DoWe3n3VY9L412eXUseCYX6o6xLjIqX6ixW5dF7pzdxQzMaqMQU/NGDk= X-Received: by 2002:a05:6808:1926:b0:3db:16a3:748a with SMTP id 5614622812f47-3e068270375mr2190143b6e.32.1726068171879; Wed, 11 Sep 2024 08:22:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dominique Devienne Date: Wed, 11 Sep 2024 17:22:40 +0200 Message-ID: Subject: Re: Backward compat issue with v16 around ROLEs To: "David G. Johnston" 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 Wed, Sep 11, 2024 at 5:06=E2=80=AFPM David G. Johnston wrote: > As the error indicates, this grant needs to be done with admin option. Hi David. I did as you suggested, and it fails the same way. Did I misunderstand you? --DD D:\pdgm\trunk\psc2>psql service=3Dpau16 psql (17beta3, server 16.1) Type "help" for help. ddevienne=3D> create role dd_owner createrole; CREATE ROLE ddevienne=3D> create role dd_admin noinherit; CREATE ROLE ddevienne=3D> grant dd_owner to dd_admin with admin option; -- <<<<<<<< GRANT ROLE ddevienne=3D> grant dd_owner to current_user; GRANT ROLE ddevienne=3D> set role dd_owner; SET ddevienne=3D> create role dd_user; CREATE ROLE ddevienne=3D> grant dd_admin to dd_user; ERROR: permission denied to grant role "dd_admin" DETAIL: Only roles with the ADMIN option on role "dd_admin" may grant this role. ddevienne=3D>