"Otto Blomqvist" <o.blomqvist@xxxxxxxxxxxxx> writes: > How do I signal a custom C function that the Postmaster wants to shut down ? Do "CHECK_FOR_INTERRUPTS();" at a suitable spot in the C function's main loop. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend