George Weaver <gweaver@shaw.ca> writes:
> However, if I start a new shell session and install the function and =
> immediately call the function several times consecutively, after =
> anywhere from 3 to 7 function calls the server disconnects:
> server closed the connection unexpectedly
Getting a stack trace from this core dump should be your first
investigative move.
regards, tom lane