Re: How to hidde the column from the user - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: How to hidde the column from the user
Date
Msg-id 20070501094821.GB27233@svana.org
Whole thread Raw
In response to How to hidde the column from the user  ("rupesh bajaj" <rupesh.bajaj@gmail.com>)
List pgsql-hackers
On Tue, May 01, 2007 at 03:09:17PM +0530, rupesh bajaj wrote:
> Hi,
> I want to add a column in the table and also want to hidde that column from
> the user. So that user's normal insertion and update goes on (means user
> will not supply the value for my hidden column). Is there any way to hidde
> the column from the user. I tried to make my column (attisdropped setting as
> true). So now that column is hide from the user but now that column will be
> sometime deleted by postgres. But i do not want that my column should be
> deleted. Is there any way for doing this. Or can you suggest some better way
> for this.

Make it a view on a real table and revoke access permissions on the
real table?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: How to hidde the column from the user
Next
From: Oleg Bartunov
Date:
Subject: Re: How to hidde the column from the user