Re: PostGres Doubt - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PostGres Doubt
Date
Msg-id 26192.1024411142@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostGres Doubt  (David Ford <david@blue-labs.org>)
List pgsql-hackers
David Ford <david@blue-labs.org> writes:
> heakin=> \z
> Access privileges for database "heakin"
>        Table       | Access privileges
> -------------------+-------------------
>  interviewers      |

> heakin=> grant select,insert,update on interviewers to heakin;
> GRANT
> heakin=> \z
> Access privileges for database "heakin"
>        Table       | Access privileges 
> -------------------+--------------------
>  interviewers      | {=,heakin=arwdRxt}

I take it heakin is the owner of the table in question.  As such,
he implicitly has all privileges --- the initial null privilege list
is a shorthand for what you see explicitly in the second case.

The GRANT man page in current development sources has an example about
this; see the Notes section of
http://developer.postgresql.org/docs/postgres/sql-grant.html
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SetQuerySnapshot, once again
Next
From: Tom Lane
Date:
Subject: Re: FATAL 2: InitRelink(logfile 0 seg 173) failed: No such file or directory