Re: [PATCH] lock_timeout and common SIGALRM framework
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Boszormenyi Zoltan <zb@cybertec.at>
Cc: Alvaro Herrera <alvherre@commandprompt.com>, Marc Cousin <cousinmarc@gmail.com>, Pg Hackers <pgsql-hackers@postgresql.org>, Hans-Juergen Schoenig <hs@cybertec.at>, Ants Aasma <ants@cybertec.at>, Robert Haas <robertmhaas@gmail.com>
Date: 2012-07-13T21:51:45Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix Windows implementation of PGSemaphoreLock.
- ada8fa08fc6c 9.2.0 cited
Boszormenyi Zoltan <zb@cybertec.at> writes: > While doing it, I discovered another bug you introduced. > enable_timeout_after(..., 0); would set an alarm instead of ignoring it. > Try SET deadlock_timeout = 0; Hm. I don't think it's a bug for enable_timeout_after(..., 0) to cause a timeout ... but we'll have to change the calling code. Thanks for catching that. > Same for enable_timeout_at(..., fin_time): if fin_time points to the past, > it enables a huge timeout No, it should cause an immediate interrupt, or at least after 1 microsecond. Look at TimestampDifference. regards, tom lane