Re: Custom C function shutdown-signaling

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Otto Blomqvist" <o(dot)blomqvist(at)secomintl(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Custom C function shutdown-signaling
Date: 2005-07-05 23:10:14
Message-ID: 18913.1120605014@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Otto Blomqvist" <o(dot)blomqvist(at)secomintl(dot)com> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Gagnon 2005-07-05 23:48:05 Re: double entries into database when using IE
Previous Message Clark Allan 2005-07-05 23:05:27 Re: PostgreSQL sequence within function