Re: Restoring default privileges on objects

From: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Restoring default privileges on objects
Date: 2023-08-30 10:00:30
Message-ID: 20230830100030.oxnegs7cxbzvjizt@hjp.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 2023-08-29 14:44:48 -0600, Stuart McGraw wrote:
> On 8/29/23 13:27, Tom Lane wrote:
> > 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.
>
> That change would still require someone using \dp to realize that
> the "Access privileges" value could be either '' or NULL (I guess
> that could be pointed out more obviously in the psql doc), and then
> do a '\pset null' before doing \dp? That seems a little inconvenient.

Or just always do a \pset null. For me printing NULL the same as an
empty string is just as confusing in normal tables, so that's the first
line in my ~/.psqlrc. YMMV, of course.

But I guess the point is that people who do \pset null expect to be able
to distinguish '' and NULL visually and might be surprised if that
doesn't work everywhere, while people who don't \pset null know that ''
and NULL are visually indistinguishable and that they may need some
other way to distinguish them if the difference matters.

So +1 for me fixing \dp to honor "\pset null".

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Troels Arvin 2023-08-30 13:12:13 Calculating vm.nr_hugepages
Previous Message Jerry Sievers 2023-08-30 03:47:40 Re: [INTERNET] Re: auto vacuum question

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2023-08-30 10:28:53 Re: [PATCH v1] PQputCopyEnd never returns 0, fix the inaccurate comment
Previous Message Anthonin Bonnefoy 2023-08-30 09:15:31 Re: POC: Extension for adding distributed tracing - pg_tracing