Re: pgsql-server: Have \dn+ show permissions and description

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server: Have \dn+ show permissions and description
Date: 2004-07-13 22:45:45
Message-ID: 200407132245.i6DMjj313101@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-patches

Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > Peter Eisentraut wrote:
> > > Bruce Momjian wrote:
> > > > Log Message:
> > > > -----------
> > > > Have \dn+ show permissions and description for schemas.
> > >
> > > Did we agree on this? It's now inconsistent with tables and other
> > > objects.
> >
> > No one disagreed that I remember. How are we inconsistent exactly?
>
> Dennis asked for opinions about how to name the command. There were
> other opinions offered. The patch was just an example, without a
> decision on the name of the command.
>
> The inconsistency is that there is a separate "show permissions" command
> for tables, but for schemas it's now under "extra information". Now we
> can't be sure where the permission information for the next object will
> end up. That's not good.

With \dp having a schema column, how would we display permissions there?

Access privileges for database "test"
Schema | Name | Type | Access privileges
--------+------+-------+-------------------
public | test | table |
(1 row)

I don't think it makes sense to add schema to \dp if it would not
normally appear in the \dp display.

I figured schema permissions were different enough from table that is
belonged under schema, no? Also, to me view/table/sequence are data
storage objects, while schemas seem different.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-07-14 02:28:31 Re: pgsql-server: Have \dn+ show permissions and description
Previous Message Peter Eisentraut 2004-07-13 22:29:10 Re: pgsql-server: Have \dn+ show permissions and description for schemas.

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2004-07-13 22:47:35 Re: PITR Archive Recovery plus WIP PITR
Previous Message Oliver Elphick 2004-07-13 22:45:15 Re: [HACKERS] Is "trust" really a good default?