"Jasbinder Bali" <jsbali@xxxxxxxxx> writes: > Its because my trigger has to initiate some unix tools and the code for > the same is already written in Perl. > So my trigger just needs to call the Perl program that would do the needful > eventually. Seems like you should be writing the trigger in plperl then. Writing triggers in C is a task with a *steep* learning curve that you've evidently barely started to climb, and frankly I don't see where you're expecting to get any return from it. regards, tom lane