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 1qwJEa-00B0mU-P4 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Oct 2023 09:34:28 +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 1qwJEZ-00EAZz-6b for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Oct 2023 09:34:27 +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 1qwJEY-00EAZf-T2 for pgsql-hackers@lists.postgresql.org; Fri, 27 Oct 2023 09:34:26 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qwJEV-00359J-UH for pgsql-hackers@lists.postgresql.org; Fri, 27 Oct 2023 09:34:26 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-51e28cac164so6184059a12.1 for ; Fri, 27 Oct 2023 02:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698399262; x=1699004062; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:from:to:cc:subject:date:message-id:reply-to; bh=XvIDLDcHOone6fSr4bifLvSEKGZiIaDVrdH7DIzDoFQ=; b=LiyjznvOx/0tNWq3VwRyBakfYcKdrIlbfFYCWOvAgCXGSt6TR0ncswtDIynWGNzn+L Fe5dyOoBL97aKnYQCxgKG/dvQfI82ebThf1CcPkD0z4qKPapmCkNvytS0AJJBuE5Y/U3 kjAE7MVzaJqklB/felTLAaWNXQQlMZ4Y9221F16Izn04JGbTpoE589s5GGSGsrW6+d8R zAj0m6biorIm9UnsUVJj0y3a6LHN343TEc7UdXMC19ySNnvXgjk7eDoYmDGoN6/H0HB8 NSxDP0/MzFm/3nZhgRXtMr2AtQtvsb1LYXhCeiIdZTFsSaoR9V1ZQLra9PWJs+38ixhv 1hHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698399262; x=1699004062; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XvIDLDcHOone6fSr4bifLvSEKGZiIaDVrdH7DIzDoFQ=; b=HelLKi/lZ0Sbsq8ULYp+6I4pofNAkS921lxxDWFcWZo7t6gIO0zmbwy0ZmcNlsQLcv 9ZZUo0QwKDgcGYj+rV5yMtBb8VdZiacGHtclOdXbbOXbqpb1NDp7bpmpU+Y3poXmxlyS VTPJz1+uop30vTubRz2E2RUJeB9m/oSaAXs8KSWw+gRJRm41MOa4bmeuz8tG5fAHLcHZ EoXWq2OkRj3pD66QRDbABO/Uwl2olSlgWQASX5XATEhT2N/sgzCtb5J4up53E8E8oMBx f5VPMeQiNCoeALBvBroN0RyVHk0bUxEZ3h9pECzse9ATqzZX48y/PstHpZfvFGWrKVcX c7EA== X-Gm-Message-State: AOJu0Yzp3LlGP3GiX3FdJUnCvbx2PWY7tt3fD4Nbdw4EZZb7+w3qT1O+ t5267AaGFvbzddlL8x5p69I= X-Google-Smtp-Source: AGHT+IF7TeSlIqsu1tNJ9m8KXaUhnp4T98fS/5yY6rep2l74ZFGG34mAwf/jH2aty5S1VVHVv12qFg== X-Received: by 2002:a50:9e0c:0:b0:522:582c:f427 with SMTP id z12-20020a509e0c000000b00522582cf427mr2036918ede.14.1698399261934; Fri, 27 Oct 2023 02:34:21 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:34cf:1001:f11c:3b32:31b7:711]) by smtp.gmail.com with ESMTPSA id o21-20020aa7c515000000b0053e9352643csm925507edq.62.2023.10.27.02.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 02:34:21 -0700 (PDT) Message-ID: <653b841d.a70a0220.17f72.2c12@mx.google.com> X-Google-Original-Message-ID: <20231027093420.GE29516@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Sender: Michael Banck Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1qwJES-0003fO-V2; Fri, 27 Oct 2023 11:34:20 +0200 Date: Fri, 27 Oct 2023 11:34:20 +0200 From: Michael Banck To: Laurenz Albe Cc: David Burns , pgsql-hackers@lists.postgresql.org Subject: Re: Version 14/15 documentation Section "Alter Default Privileges" References: <4a6f157edc4ae38a2050a5893e6729cbb98113bc.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Fri, Oct 27, 2023 at 09:03:04AM +0200, Laurenz Albe wrote: > On Fri, 2022-11-04 at 10:49 +0100, Laurenz Albe wrote: > > On Thu, 2022-11-03 at 11:32 +0100, Laurenz Albe wrote: > > > On Wed, 2022-11-02 at 19:29 +0000, David Burns wrote: > > > > > > > Some additional clarity in the versions 14/15 documentation > > > > would be helpful specifically surrounding the "target_role" > > > > clause for the ALTER DEFAULT PRIVILEGES command. To the > > > > uninitiated, the current description seems vague.  Maybe > > > > something like the following would help: > > > > After some more thinking, I came up with the attached patch. > > I'm sending a reply to the hackers list, so that I can add the patch > to the commitfest. I think something like this is highly useful because I have also seen people very confused why default privileges are not applied. However, maybe it could be made even clearer if also the main description is amended, like "You can change default privileges only for objects that will be created by yourself or by roles that you are a member of (via target_role)." or something. Michael