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 1qb4N6-00B3wO-Fo for pgsql-general@arkaria.postgresql.org; Tue, 29 Aug 2023 19:27: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 1qb4N4-00API7-JF for pgsql-general@arkaria.postgresql.org; Tue, 29 Aug 2023 19:27:26 +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 1qb4N4-00APHb-6c for pgsql-general@lists.postgresql.org; Tue, 29 Aug 2023 19:27:25 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qb4N0-001eXO-Sd for pgsql-general@lists.postgresql.org; Tue, 29 Aug 2023 19:27:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 37TJRIjY031247; Tue, 29 Aug 2023 15:27:18 -0400 From: Tom Lane To: Erik Wienhold cc: Stuart McGraw , pgsql-general@lists.postgresql.org Subject: Re: Restoring default privileges on objects In-reply-to: <1550267563.330669.1693335893138@office.mailbox.org> References: <96d6885a-5e25-9ae8-4a1a-d7e557a5fe9c@mtneva.com> <1166048641.281962.1693308151542@office.mailbox.org> <1006397.1693318485@sss.pgh.pa.us> <1550267563.330669.1693335893138@office.mailbox.org> Comments: In-reply-to Erik Wienhold message dated "Tue, 29 Aug 2023 21:04:53 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31245.1693337238.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 29 Aug 2023 15:27:18 -0400 Message-ID: <31246.1693337238@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Erik Wienhold writes: > On 29/08/2023 18:43 CEST Stuart McGraw wrote: >> Shouldn't psql put *something* (like "(default)" or "-") in the >> "Access privileges" column to indicate that? Or conversely, >> something (like "(none)"?) in the revoked case? > Indeed, that's confusing. Command \dp always prints null as empty strin= g [1]. > So \pset null '(null)' has no effect. Yeah, perhaps. The reason it so seldom comes up is that a state of zero privileges is extremely rare (because it's useless in practice). That being the case, if we were to do something about this, I'd vote for changing the display of zero-privileges to "(none)" or something along that line, rather than changing the display of NULL, which people are accustomed to. Fixing \dp to honor "\pset null" for this might be a reasonable thing to do too. I'm actually a bit surprised that that doesn't work already. regards, tom lane