Re: [GENERAL] Running function automatically on (unclean) disconnect

2008-03-25 Thread Tomasz Ostrowski
Stumo wrote: > Each client retrieves an unprocessed record from the server, marks > that it's processing that record, does some processing (this will take > some time), and adds some extra data to the server based on the > processing. [snip] > > However, if a client disconnects (which, because of

[GENERAL] Running function automatically on (unclean) disconnect

2008-03-21 Thread Stumo
Hi all. I'd like to get a function to run automatically on the server when a postgresql client disconnects (either all disconnections, or just unclean ones). This is to do some cleanup that can't be done with transactions easily from what I can tell. Is it possible? To give you an idea of why I n