restrict modification of column values in BR triggers

From: Miroslav Šimulčík <simulcik(dot)miro(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: restrict modification of column values in BR triggers
Date: 2012-02-27 10:35:44
Message-ID: CAHRNM68GyOuzwLkfkfnDAbWKnqbbBpNW7pARQRP60JvhC_f-eg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

is there any way to prevent role from modifing values of some columns of
NEW row in before row triggers? I revoked insert privilege from these
columns to ensure that only default value can be inserted, but it is still
posible to modify values being inserted using before row triggers. I can't
revoke trigger privilege on that table, because this role must be able to
create triggers on this table.

Thank you.

Best regards
Miroslav Simulcik

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marti Raudsepp 2012-02-27 10:45:38 [PATCH] Cleanup: use heap_open/heap_close consistently
Previous Message Magnus Hagander 2012-02-27 10:22:16 Re: pgstat documentation tables