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 1qb4jb-00B4cM-9M for pgsql-general@arkaria.postgresql.org; Tue, 29 Aug 2023 19:50:43 +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 1qb4jZ-00Amfo-Pz for pgsql-general@arkaria.postgresql.org; Tue, 29 Aug 2023 19:50:41 +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 1qb4jZ-00AmfH-A8 for pgsql-general@lists.postgresql.org; Tue, 29 Aug 2023 19:50:41 +0000 Received: from mout-u-204.mailbox.org ([80.241.59.204]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qb4jU-001emR-09 for pgsql-general@lists.postgresql.org; Tue, 29 Aug 2023 19:50:39 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4RZyhR04hwz9sQm; Tue, 29 Aug 2023 21:50:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ewie.name; s=MBO0001; t=1693338631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5o8wMcUy/epe+ICAdOpgl6NRIZy44z1dLy3dpUUMbuw=; b=CMaO+q2x5RvhsNHBdIZKe611wkuyULCb6ue964fxGL6855QlRKbTLHSK0AGDRCAijVQc1R Ur6DSMSnW1An58qlZaPJSN9V4hZ0zlv+RbVmBkAJSi1ZRmhnIrKFjgLxHTk/Z4ozvvI6Rh 75Q3dY9/xM+eOK2j/Kvy1T+KX28iQk3uwmveqM+If/0a/200FcEaK//tNkNEpecfc2UP9z ZLHCZWihHT2JJg+HtegoWohd0S7Opvi/GADTDPfdl0eKftW9cG8db3buB2mZm5s6bBGqk9 5JpbtxbRnWxURqo2QqU9IZdNVL66qNECV6uXIMAUXidfY0yl1zijFVQZy3ZVig== Date: Tue, 29 Aug 2023 21:50:30 +0200 (CEST) From: Erik Wienhold To: Tom Lane Cc: Stuart McGraw , pgsql-general@lists.postgresql.org Message-ID: <2094101432.333909.1693338630182@office.mailbox.org> In-Reply-To: <31246.1693337238@sss.pgh.pa.us> 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> <31246.1693337238@sss.pgh.pa.us> Subject: Re: Restoring default privileges on objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 4RZyhR04hwz9sQm List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 29/08/2023 21:27 CEST Tom Lane wrote: > > 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. +1 > 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. Looks like all commands in src/bin/psql/describe.c set nullPrint = NULL. Has been that way since at least 1999. -- Erik