Can trigger procedures return value - Mailing list pgsql-general

From Deepa K
Subject Can trigger procedures return value
Date
Msg-id 3F264F0C.8AD851B4@midascomm.com
Whole thread Raw
Responses Re: Can trigger procedures return value  (nolan@celery.tssi.com)
List 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


pgsql-general by date:

Previous
From: Andreas Jung
Date:
Subject: concurrent writes
Next
From: "Shridhar Daithankar"
Date:
Subject: Re: concurrent writes