On Fri, May 12, 2006 at 09:54:23AM -0500, Rhys Stewart wrote: > are there any function in pl/pgsql to call a shell script? or like is > there a pl/bash? PL/sh might be what you're after; you could also use PL/Perl, etc. http://pgfoundry.org/projects/plsh/ What does the shell script do? Having the database invoke external actions isn't always a good idea; for example, if the transaction rolls back then you can't undo those actions. Some problems are better solved with LISTEN/NOTIFY because notifications don't go out unless and until the transaction commits. -- Michael Fuhr