From: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
---|---|
To: | rupesh bajaj <rupesh(dot)bajaj(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to hidde the column from the user |
Date: | 2007-05-01 09:47:22 |
Message-ID: | 46370CAA.2050406@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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.
You should ask usage questions on pgsql-general to get more informative
responses.
Create a view on top of the table that hides the column.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2007-05-01 09:48:21 | Re: How to hidde the column from the user |
Previous Message | rupesh bajaj | 2007-05-01 09:39:17 | How to hidde the column from the user |