Skip site navigation (1) Skip section navigation (2)

psql schema permissions

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: psql schema permissions
Date: 2004-06-30 13:18:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
There is no way to show schema permissions in psql.

The alternatives are:

  1) A new \dpn command

  2) Extend \dp to also show rights for schemas, but then we need
     an extra column to describe what kind of object it is, and it
     would mess up the pattern stuff.

  3) Do nothing and let people who want to see schema permissions
     query the system table (select * from pg_namespace).

  4) Since \dn only shows the name and the owner we can simply
     add a permission column.

  5) Some better way that is unknow to me

I've attached a patch for number 4) which I think is the best. Well, 5) is 
better, but also harder to implement.

/Dennis Björklund

Attachment: psql_show_schema_perms.txt
Description: text/plain (1.5 KB)


pgsql-patches by date

Next:From: Gavin SherryDate: 2004-06-30 14:19:05
Subject: Updated ALTER TABLE ... SET TABLESPACE patch
Previous:From: Fabien COELHODate: 2004-06-30 12:20:58
Subject: Re: patch queue reminder

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group