Can trigger procedures return value

From: Deepa K <kdeepa(at)midascomm(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Can trigger procedures return value
Date: 2003-07-29 10:40:12
Message-ID: 3F264F0C.8AD851B4@midascomm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
Can trigger procedures can return
values.

Actually I need a trigger that should
not allow rows to be updated in a particular
table on a specific condition.(like users
other than 'manager' should not be allowed to
update that table')

If the user other than 'manager' tries to update
that table, I need a error number that should be
returned by trigger procedure to prompt the
user that he/she is not a valid user.

If it is not possible to return error from
trigger procedure, what could be the possible
way to solve the above problem.

regards,
Deepa. K

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2003-07-29 10:42:24 Re: concurrent writes
Previous Message Andreas Jung 2003-07-29 10:33:06 concurrent writes