Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 04D56B59EA9 for ; Mon, 30 Jan 2012 22:03:36 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rs34F-0005vS-S5 for pgsql-bugs@postgresql.org; Tue, 31 Jan 2012 02:03:35 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q0V23CPd022794; Mon, 30 Jan 2012 21:03:12 -0500 (EST) To: bdmytrak@eranet.pl cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6421: Revoke column level privilage In-reply-to: References: Comments: In-reply-to bdmytrak@eranet.pl message dated "Mon, 30 Jan 2012 22:35:05 +0000" Date: Mon, 30 Jan 2012 21:03:12 -0500 Message-ID: <22793.1327975392@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/259 X-Sequence-Number: 32326 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