Lists: | pgsql-hackers |
---|
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | How to display privileges in psql |
Date: | 2004-07-15 12:11:35 |
Message-ID: | 200407151411.35671.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Maybe other people want to comment on this issue.
So far, \z and \dp have shown privileges of tables.
Now \dn+ and \db+ show the privileges of schemas and tablespaces.
Should we, for consistency, move the table privilege display to \dt+, or
should we move the schema and tablespace display to, say \zn and \zb? Or
maybe this is not an issue at all.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-15 14:41:49 |
Message-ID: | 200407151441.i6FEfnm25998@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Peter Eisentraut wrote:
> Maybe other people want to comment on this issue.
>
> So far, \z and \dp have shown privileges of tables.
>
> Now \dn+ and \db+ show the privileges of schemas and tablespaces.
>
> Should we, for consistency, move the table privilege display to \dt+, or
> should we move the schema and tablespace display to, say \zn and \zb? Or
> maybe this is not an issue at all.
Now that you mention it, it does seem nice to show permissions in \dt+.
--
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
From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-15 17:22:42 |
Message-ID: | 20040715172242.GA2450@dcc.uchile.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, Jul 15, 2004 at 10:41:49AM -0400, Bruce Momjian wrote:
> Peter Eisentraut wrote:
> > Maybe other people want to comment on this issue.
> >
> > So far, \z and \dp have shown privileges of tables.
> >
> > Now \dn+ and \db+ show the privileges of schemas and tablespaces.
> >
> > Should we, for consistency, move the table privilege display to \dt+, or
> > should we move the schema and tablespace display to, say \zn and \zb? Or
> > maybe this is not an issue at all.
>
> Now that you mention it, it does seem nice to show permissions in \dt+.
IMHO the \dn+ output would get too wide if you do that. I'd be in favor
of using \z<letter> to display permissions of the object in \d<letter>
Something that annoys me is that the \? shows
\dt description of what it does ...
add + for more details
where it should be
\dt[+] same description
No need to say what the + does, it should be obvious.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Para tener más hay que desear menos"
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-15 18:56:13 |
Message-ID: | 200407151856.i6FIuDk02304@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Alvaro Herrera wrote:
> On Thu, Jul 15, 2004 at 10:41:49AM -0400, Bruce Momjian wrote:
> > Peter Eisentraut wrote:
> > > Maybe other people want to comment on this issue.
> > >
> > > So far, \z and \dp have shown privileges of tables.
> > >
> > > Now \dn+ and \db+ show the privileges of schemas and tablespaces.
> > >
> > > Should we, for consistency, move the table privilege display to \dt+, or
> > > should we move the schema and tablespace display to, say \zn and \zb? Or
> > > maybe this is not an issue at all.
> >
> > Now that you mention it, it does seem nice to show permissions in \dt+.
>
> IMHO the \dn+ output would get too wide if you do that. I'd be in favor
> of using \z<letter> to display permissions of the object in \d<letter>
Is the new \db+ and \dn+ too wide now?
Actually it looks like \db+ is fine but \dn+ is long because it has both
permissions and a description:
test=> \dt+
List of relations
Schema | Name | Type | Owner | Description
--------+------+-------+----------+-------------
public | test | table | postgres |
(1 row)
test=> \db+
List of tablespaces
Name | Owner | Location | Access privileges
------------+----------+----------+-------------------
pg_default | postgres | |
pg_global | postgres | |
(2 rows)
test=> \dn+
List of schemas
Name | Owner | Access privileges | Description
--------------------+----------+-------------------------------------+----------------------------------
information_schema | postgres | {postgres=UC/postgres,=U/postgres} |
pg_catalog | postgres | {postgres=UC/postgres,=U/postgres} | System catalog schema
pg_toast | postgres | | Reserved schema for TOAST tables
public | postgres | {postgres=UC/postgres,=UC/postgres} | Standard public schema
(4 rows)
> Something that annoys me is that the \? shows
>
> \dt description of what it does ...
> add + for more details
>
> where it should be
>
> \dt[+] same description
>
> No need to say what the + does, it should be obvious.
Good idea.
--
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
From: | Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org> |
---|---|
To: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-15 19:37:41 |
Message-ID: | Pine.LNX.4.44.0407152134190.2838-100000@zigo.dhs.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, 15 Jul 2004, Alvaro Herrera wrote:
> IMHO the \dn+ output would get too wide if you do that. I'd be in favor
> of using \z<letter> to display permissions of the object in \d<letter>
I think it's time to start with longer command names. Tab completion makes
it easy anyway. The short ones should still be there, but not every
command needs a short form.
--
/Dennis Björklund
From: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-16 04:26:07 |
Message-ID: | 40F758DF.2090507@familyhealth.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
> Maybe other people want to comment on this issue.
>
> So far, \z and \dp have shown privileges of tables.
>
> Now \dn+ and \db+ show the privileges of schemas and tablespaces.
>
> Should we, for consistency, move the table privilege display to \dt+, or
> should we move the schema and tablespace display to, say \zn and \zb? Or
> maybe this is not an issue at all.
I don't know :(
psql is starting to struggle to show all information!
And what about \df+ and \l+ ? They both need privilege display as well.
Chris
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-20 21:01:31 |
Message-ID: | 200407202101.i6KL1Vq25441@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Added to TODO:
* Allow psql to display permission information using \df+ and \l+
---------------------------------------------------------------------------
Christopher Kings-Lynne wrote:
> > Maybe other people want to comment on this issue.
> >
> > So far, \z and \dp have shown privileges of tables.
> >
> > Now \dn+ and \db+ show the privileges of schemas and tablespaces.
> >
> > Should we, for consistency, move the table privilege display to \dt+, or
> > should we move the schema and tablespace display to, say \zn and \zb? Or
> > maybe this is not an issue at all.
>
> I don't know :(
>
> psql is starting to struggle to show all information!
>
> And what about \df+ and \l+ ? They both need privilege display as well.
>
> Chris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
--
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
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-20 21:41:14 |
Message-ID: | 200407202341.14815.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Bruce Momjian wrote:
> Added to TODO:
>
> * Allow psql to display permission information using \df+ and \l+
What about, develop a consistent way to display privilege information
for all objects in psql?
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-20 21:53:44 |
Message-ID: | 20040720215344.GY15150@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Jul 20, 2004 at 11:41:14PM +0200, Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > Added to TODO:
> >
> > * Allow psql to display permission information using \df+ and
> > \l+
>
> What about, develop a consistent way to display privilege
> information for all objects in psql?
Excellent idea. :)
Is this worth breaking backward compatibility for? IMHO, yes, but
others may have good reasons--critical-path psql scripts, e.g.--for
not doing it.
BTW, while I working out an example for CREATE DOMAIN
(http://fetter.org/sgml/sql-createdomain.html), I found that \dD and
\dD+ appear to do the exact same thing. I was hoping that \dD+ would
show all CONSTRAINTs.
Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778
Remember to vote!
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to display privileges in psql |
Date: | 2004-07-20 22:30:23 |
Message-ID: | 200407202230.i6KMUND06303@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > Added to TODO:
> >
> > * Allow psql to display permission information using \df+ and \l+
>
> What about, develop a consistent way to display privilege information
> for all objects in psql?
OK, item wording updated.
--
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