Re: How to check for pending CancelRequest from C/C++ function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Woodbridge <woodbri(at)swoodbridge(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to check for pending CancelRequest from C/C++ function
Date: 2014-01-06 15:32:05
Message-ID: 3690.1389022325@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen Woodbridge <woodbri(at)swoodbridge(dot)com> writes:
> I writing some functions for postgresql extension in C/C++ and I would
> like to be able to check for a pending CancelRequest from the frontend
> so I can take appropriate action to honor this request.

Put "CHECK_FOR_INTERRUPTS();" in some suitably safe place.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2014-01-06 15:35:47 Re: WAL archive cleanup om master
Previous Message Adrian Klaver 2014-01-06 15:16:25 Re: WAL archive cleanup om master