Uh oh, I think plphp is crashing the server. When I update a row in the table with the trigger, this happens: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. And this is what shows up in the log: LOG: server process (PID 31665) was terminated by signal 11 LOG: terminating any other active server processes Wow. I still don't see anything wrong with the plphp function - how could it cause the entire server to crash? Thanks, CSN ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster