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 1r0hQC-007Ehh-8Q for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 12:12:36 +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 1r0hQ9-002qbB-Me for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 12:12:33 +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 1r0hQ9-002qb3-D1 for pgsql-hackers@lists.postgresql.org; Wed, 08 Nov 2023 12:12:33 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r0hQ2-004Ynn-MX for pgsql-hackers@lists.postgresql.org; Wed, 08 Nov 2023 12:12:32 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9e2838bcb5eso274209666b.0 for ; Wed, 08 Nov 2023 04:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1699445545; x=1700050345; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=lU7Ra7GQvanqW6JtsYuAvzarRWfxcPyO6HVXf0l8p2M=; b=BX5QtNSNWPCcKrdXuuqeHjSkhRNA6ARB27oJeMlv7kxOUXbNr9gWLYWnU6Zmuovhul FWWnXYt2e0JdZdREDVBC7LPFaTzzWyeFOBQuFsaHXXY4pK7XAhp0zMyvYKngi3EfKEny dYVqCq6y1Ey94BNKvGKeDSrZt3Dqq1I4n3Rt7211CQNUM3ZJiAhHUZyxIGKbOLqSBGXk vhPCTIFrPByYQgIEW7x+xc1VR0YV8B5sX3svejmDTRdZFqYZNyVtmaqDzkFX+++lFNTV T/EFL4HgHZi0xdZ3UxHXFBwRXLfQfwqaObNxXyTnV4iv1vNjBtCv8aFVHU9lJ7HaoGp/ 1YzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699445545; x=1700050345; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lU7Ra7GQvanqW6JtsYuAvzarRWfxcPyO6HVXf0l8p2M=; b=u1U3Mtgjmlfx3Tc0dr+ELIELVB7RzTnwTMjYKomuun8xA1cHWlkzhm51OFuCkrQ5zk jGjKdnOnE+Lt1E10rY0vp2YQwihwQzJ+YYlLrpDw8Jf4bAlNIXySEZzqXDMvrFk6gHBj glpIXTTVJD6oPEV/nQeelnJW+zZgOytfnuKlDn3A2UQJxzXF1kHWdULUWroZQv5ni1QB ODTRk1ePa2/9ji69yvRX4JN8jHv6vWR5gmXAD+1DSUbrudb/h8F2yOGtKYsrqF4QvLw9 vQergsmUKebesOiqulktnG3C0kXiF1hvw05GE3Jxm20RSNYDSKaQ/P6IYox7r0zoocoe yntA== X-Gm-Message-State: AOJu0YzsRPgxCPHEmhU0T4b94a7EJfRdPh8FwupLD+Q2y77/4m+sCSW8 c107wgQlfzLfiby5uqDBtI616A== X-Google-Smtp-Source: AGHT+IEvPdCk8qzrs1BISpRbtfisphi8K7jcWEclKTeN9cUlYlySdXijjnuLm2TBtxjWw0hw66Iqkg== X-Received: by 2002:a17:907:d8e:b0:9ae:6a08:6f53 with SMTP id go14-20020a1709070d8e00b009ae6a086f53mr1297671ejc.63.1699445544998; Wed, 08 Nov 2023 04:12:24 -0800 (PST) Received: from localhost.localdomain ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id mf24-20020a170906cb9800b009d2eb40ff9dsm953766ejb.33.2023.11.08.04.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 04:12:24 -0800 (PST) Message-ID: Subject: Re: Version 14/15 documentation Section "Alter Default Privileges" From: Laurenz Albe To: Bruce Momjian Cc: Michael Banck , David Burns , pgsql-hackers@lists.postgresql.org Date: Wed, 08 Nov 2023 13:12:24 +0100 In-Reply-To: References: <7de5f33f49a91d7b30b8c01fe46fc280713ebae1.camel@cybertec.at> <653cce08.050a0220.a10fb.7878@mx.google.com> <244e0f9e3300f165ff578302e942fa3145dedfc7.camel@cybertec.at> <06bdd234afabd3144ffaf8e95f42af0f3b38082e.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2023-11-07 at 17:30 -0500, Bruce Momjian wrote: > You didn't seem to like my SET ROLE suggestion so I removed it. I thought that the information that you can use SET ROLE to assume the identity of another role is correct, but leads a bit too far in the manual page of ALTER DEFAULT PRIVILEGES. > > + > > + There is no way to change the default privileges for objects create= d by > > + arbitrary roles. You have run ALTER DEFAULT PRIVILEGES >=20 > I find the above sentence odd. What is its purpose? I cannot count how many times I have seen the complaint "I have run ALTER D= EFAULT PRIVILEGES, and now when some other user creates a table, the permissions a= re unchanged". People tend to think that if you omit FOR ROLE, the change appl= ies to PUBLIC. Your improved documentation of "target_role" already covers that somewhat, = so if you don't like the repetition, I'm alright with that. I just thought it mi= ght be worth stating it explicitly. I think your patch is fine and ready to go. Yours, Laurenz Albe >=20