From: Tom Lane <tgl@sss.pgh.pa.us>
To: bdmytrak@eranet.pl
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6421: Revoke column level privilage
Date: Mon, 30 Jan 2012 21:03:12 -0500
Message-ID: <22793.1327975392@sss.pgh.pa.us> (raw)
In-Reply-To: <E1RrzoX-0005KH-U2@wrigleys.postgresql.org>
References: <E1RrzoX-0005KH-U2@wrigleys.postgresql.org>
bdmytrak@eranet.pl writes:
> Cannot revoke column level privilages.
AFAICS this is not a bug, and it's certainly not specific to
column-level privileges. You had "postgres" grant some privileges to
"otherUser" with grant option, and then had "otherUser" re-grant those
privileges to public. "postgres" cannot revoke the re-grant directly.
You can have it revoke "otherUser"'s grant option. (I think this will
require the CASCADE keyword if there are dependent privileges that
have to be revoked in consequence.) Or you can log in as "otherUser"
and revoke the privilege grants made by that role. This is per design
and AFAIK it's per the SQL standard's requirements.
There's a lot of fine print in the Notes sections of the GRANT and
REVOKE reference pages, which you might find helpful.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, bdmytrak@eranet.pl
Subject: Re: BUG #6421: Revoke column level privilage
In-Reply-To: <22793.1327975392@sss.pgh.pa.us>
References: <E1RrzoX-0005KH-U2@wrigleys.postgresql.org> <22793.1327975392@sss.pgh.pa.us>
* 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