Re: column level privilages error - Mailing list pgadmin-support

From Guillaume Lelarge
Subject Re: column level privilages error
Date
Msg-id 1327940240.3223.57.camel@localhost.localdomain
Whole thread Raw
In response to Re: column level privilages error  ("bdmytrak@eranet.pl" <bdmytrak@eranet.pl>)
List pgadmin-support
On Mon, 2012-01-30 at 13:13 +0100, bdmytrak@eranet.pl wrote:
> PostgreSQL provides Error code 01007 (privilege_not_granted) and 01006
> (privilege_not_revoked),  is it possible to handle these exceptions?

We never use the error codes. We simply display the error messages from
the server.

And doing an exception for some error codes doesn't seem a good idea.

> I am not sure if codes are used at present (according to
> documentation: "Some are not actually used at present, but are defined
> by the SQL standard." source:
> http://www.postgresql.org/docs/9.1/static/errcodes-appendix.html).
> 
> 
> Or simply remove this tab (like on table level) if user is not allowed
> to change privilages...

Well, it would be great to be able to use the privileges and make sure
the user cannot do something in the UI that he's not allowed on the
server. When someone will want to do something like this, he'll need to
have a complete patch. Not only the column level privileges. And it
would be a major work AFAICT.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com
PostgreSQL Sessions #3: http://www.postgresql-sessions.org



pgadmin-support by date:

Previous
From: "bdmytrak@eranet.pl"
Date:
Subject: Re: column level privilages error
Next
From: "bdmytrak@eranet.pl"
Date:
Subject: Re: column level privilages error