Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group