On Thu, 2006-11-09 at 00:39 +0000, Bill wrote: > Does PostgreSQL have built in mechanism I can use to conditionally > notify a client application that a trigger has fired? What I want is > something along the line of the following pseudo code in a trigger. > > if <condition> then > raise client event >
Yes, use LISTEN and NOTIFY. Probably it's easiest to write the trigger in PL/pgSQL. Regards, Jeff Davis ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match