Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCT8U-0004ag-NV for pgsql-docs@arkaria.postgresql.org; Wed, 17 Feb 2021 20:09:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lCT7y-0001Jm-1N for pgsql-docs@arkaria.postgresql.org; Wed, 17 Feb 2021 20:08:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCT7x-0001Jf-F8 for pgsql-docs@lists.postgresql.org; Wed, 17 Feb 2021 20:08:49 +0000 Received: from bee.birch.relay.mailchannels.net ([23.83.209.14]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCT7s-0000WU-5O for pgsql-docs@lists.postgresql.org; Wed, 17 Feb 2021 20:08:48 +0000 X-Sender-Id: dreamhost|x-authsender|jordigh@octave.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 49FD6681808 for ; Wed, 17 Feb 2021 20:08:39 +0000 (UTC) Received: from pdx1-sub0-mail-a6.g.dreamhost.com (100-96-10-122.trex.outbound.svc.cluster.local [100.96.10.122]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 842A0681000 for ; Wed, 17 Feb 2021 20:08:38 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jordigh@octave.org Received: from pdx1-sub0-mail-a6.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.10.122 (trex/6.1.1); Wed, 17 Feb 2021 20:08:39 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jordigh@octave.org X-MailChannels-Auth-Id: dreamhost X-Eight-Robust: 01d036830cd70c3d_1613592518941_4127683101 X-MC-Loop-Signature: 1613592518941:4191831054 X-MC-Ingress-Time: 1613592518941 Received: from pdx1-sub0-mail-a6.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTP id 240AD7FFFF for ; Wed, 17 Feb 2021 12:08:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=octave.org; h=message-id :subject:from:to:date:content-type:mime-version :content-transfer-encoding; s=octave.org; bh=bLF+DC9HQ1FgsL3iRpi dRoIqzD8=; b=Mh2Dh89t8HaLMaUIgbvAx7FvjlWtJt4Seqpm7eMwqphqQOraj+d LzlxoyUVNlX0Auv5ZrBeRQ7A1UjtrJcHWlWItJI/5CqDS5tN716budTDavthQyA+ QlN6nyVYr9B9Ja8jBc9tCk4piB1cbT/ISF7UO7Nn1ihCedMhIhNPOSc4= Received: from localhost (fencepost.gnu.org [209.51.188.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jordigh@octave.org) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTPSA id A658C88314 for ; Wed, 17 Feb 2021 12:08:36 -0800 (PST) Message-ID: <72652d72e1816bfc3c05d40f9e0e0373d07823c8.camel@octave.org> Subject: Document target_role param of ALTER DEFAULT PRIVILEGES X-DH-BACKEND: pdx1-sub0-mail-a6 From: Jordi =?ISO-8859-1?Q?Guti=E9rrez?= Hermoso To: pgsql-docs@lists.postgresql.org Date: Wed, 17 Feb 2021 15:08:35 -0500 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1+jordigh MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I just had a confusing moment trying to figure out why my roles weren't creating tables the way I was expecting them to. I didn't understand what the `target_role` parameter did. No matter how I try to read this page, I can't see an explanation for that parameter: https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html I propose an explanation like the following be added to the `target_role` parameter: This is the role that will create objects with altered default privileges. Note that changes in default privileges aren't inherited, so altering the default privileges of created objects for a parent role will not change the default privileges of objects created by inherited roles.