pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bryce Nesbitt <bryce2@obviously.com>
To: pgsql-sql@postgresql.org
Subject: Returning to default (e.g. blank) table permissions after a revoke?
Date: Thu, 10 Jun 2010 11:48:46 -0700
Message-ID: <4C11338E.6050702@obviously.com> (raw)

If I create a new table the "Access privileges" are blank, which gives 
implicit access to the table owner.
But if I touch the grants, then revoke, the privileges are set to {} 
which is not the same thing:

production=> create table zzz_junk1 ();

production=> \z zzz_junk1
 Schema |   Name    | Type  | Access privileges
--------+-----------+-------+-------------------
 public | zzz_junk1 | table |

production=> grant all on zzz_junk1 to production;
production=> \z zzz_junk1
         Access privileges for database "production"
 Schema |   Name    | Type  |       Access privileges
--------+-----------+-------+--------------------------------
 public | zzz_junk1 | table | {production=arwdxt/production}

production=> revoke all on zzz_junk1 from production;
production=> \z zzz_junk1
  Access privileges for database "production"
 Schema |   Name    | Type  | Access privileges
--------+-----------+-------+-------------------
 public | zzz_junk1 | table | {}


How can I return to the initial state, where the "Access privileges" are 
unspecified?
I'm using Postgres 8.3 here.  
http://www.postgresql.org/docs/8.3/static/sql-grant.html does not seem 
to cover this topic.




Message-ID: <4C11338E.6050702@obviously.com>
Permalink:  ../4C11338E.6050702@obviously.com/
Also on:    postgresql.org/message-id/4C11338E.6050702@obviously.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bryce2@obviously.com
  Subject: Re: Returning to default (e.g. blank) table permissions after a revoke?
  In-Reply-To: <4C11338E.6050702@obviously.com>

* 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