From: Erik Wienhold <ewie@ewie.name>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Stuart McGraw <smcg4191@mtneva.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Restoring default privileges on objects
Date: Tue, 29 Aug 2023 21:50:30 +0200 (CEST)
Message-ID: <2094101432.333909.1693338630182@office.mailbox.org> (raw)
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>
<efdd465d-a795-6188-7f71-7cdb4b2be031@mtneva.com>
<1550267563.330669.1693335893138@office.mailbox.org>
<31246.1693337238@sss.pgh.pa.us>
> On 29/08/2023 21:27 CEST Tom Lane <tgl@sss.pgh.pa.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ewie@ewie.name, tgl@sss.pgh.pa.us, smcg4191@mtneva.com
Subject: Re: Restoring default privileges on objects
In-Reply-To: <2094101432.333909.1693338630182@office.mailbox.org>
References: <96d6885a-5e25-9ae8-4a1a-d7e557a5fe9c@mtneva.com> <1166048641.281962.1693308151542@office.mailbox.org> <1006397.1693318485@sss.pgh.pa.us> <efdd465d-a795-6188-7f71-7cdb4b2be031@mtneva.com> <1550267563.330669.1693335893138@office.mailbox.org> <31246.1693337238@sss.pgh.pa.us> <2094101432.333909.1693338630182@office.mailbox.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox