Re: pg_sleep() doesn't work well with recovery conflict interrupts.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_sleep() doesn't work well with recovery conflict interrupts.
Date: 2014-06-01 16:26:58
Message-ID: 14901.1401640018@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> I am pretty sure by now that the sane fix for this is to add a
> SetLatch() call to RecoveryConflictInterrupt(). All the signal handlers
> that deal with query cancelation et al. do so, so it seems right that
> RecoveryConflictInterrupt() does so as well.

+1

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2014-06-01 17:35:21 Re: Changeset Extraction v7.6.1
Previous Message Tom Lane 2014-06-01 16:16:09 Re: teaching Var about NOT NULL