Thanks Steve,
I'll try that.
<snip>> > Take a look at contrib/miscutil - the C module there gives you the> SQL function backend_pid().> <snip>