Re: Dont allow updation for few columns in a record.

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: HK <harikrishnan(at)midascomm(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Dont allow updation for few columns in a record.
Date: 2003-07-11 13:31:38
Message-ID: 20030711133138.GA12937@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Jul 11, 2003 at 10:43:38 +0530,
HK <harikrishnan(at)midascomm(dot)com> wrote:
> hi all,
> thanx bruno.
> If we dont grant update access to the table, i will not be able to do any
> updations.
> I only want to prevent a particular column from being updated.
> Is there any way??

Then things are harder. One way to do this is to use the rule system
to make an updatable view (that won't let you change the one column).
You can also probably do it with before triggers.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message radha.manohar 2003-07-11 16:34:01 Re: Shared Memory
Previous Message Martin Foster 2003-07-11 06:09:38 Re: [NOVICE] Extreme high load averages