Re: Calling external program from trigger - Mailing list pgsql-hackers

From Kaare Rasmussen
Subject Re: Calling external program from trigger
Date
Msg-id 200305202129.50126.kar@kakidata.dk
Whole thread Raw
In response to Re: Calling external program from trigger  (Kaare Rasmussen <kar@kakidata.dk>)
List pgsql-hackers
HI

This may be more directed to Bruce or any other Perl maintainer.

Looking at Pgperl it seems very simple:

while (1) {   $conn->consumeInput;   ($table, $pid) = $conn->notifies;   last if $pid;
}

consumeInput will wait until something happens and we check if it is a 
notification.

But can the same be doen with DBD::Pg?

-- 
Kaare Rasmussen            --Linux, spil,--        Tlf:        3816 2582
Kaki Data                tshirts, merchandize      Fax:        3816 2501
Howitzvej 75               Åben 12.00-18.00        Email: kar@kakidata.dk
2000 Frederiksberg        Lørdag 12.00-16.00       Web:      www.suse.dk


pgsql-hackers by date:

Previous
From: Jason Tishler
Date:
Subject: Win32 PostgreSQL support for XP's Fast User Switching
Next
From: Jan Wieck
Date:
Subject: Re: Heads up: 7.3.3 this Wednesday