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: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

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


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-2017 The PostgreSQL Global Development Group