1 Jul 2006 01:52
Re: Is it possible to disable insert/update/delete triggers for one transaction and not another?
Jim C. Nasby <jnasby <at> pervasive.com>
2006-06-30 23:52:48 GMT
2006-06-30 23:52:48 GMT
On Wed, Jun 28, 2006 at 11:59:36AM -0700, Karen Hill wrote: > I have an insert/update/delete trigger on all my tables which add data > to a log table. > > I would like to be able to disable them when the tables are called from > one stored proceedure I have. Yet I would still like those triggers to > fire on any other operation that is happening concurrently. Is this > even possible? Best bet would be to have the procedure only execute as a given user (probably via security definer) and detect that in the trigger. -- -- Jim C. Nasby, Sr. Engineering Consultant jnasby <at> pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461 ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq
. This is definitely a weak spot
for a mostly-volunteer project --- it's hard to get anyone to do
that kind of work.
Something that would actually hold some intellectual interest is to
improve the testing infrastructure. The current setup is pretty limited
as to its ability to deal with varying outputs, and even more limited
in its ability to test concurrent behavior. Again, see the archives.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
RSS Feed