Re: Use nanosleep(2) in pg_usleep, if available?
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-03-12T17:17:19Z
Lists: pgsql-hackers
On Tue, Mar 12, 2019 at 1:13 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > (I'm not sure what I think about which behavior is really more > desirable. We can debate that if there's actually a plausible > choice to be made, which seems to depend on Windows.) Yeah, that's a fair question. My motivation for asking was that I sometimes try to insert sleeps when debugging things, and they don't actually sleep, because they get interrupted. That's not dispositive, though. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Use nanosleep() to implement pg_usleep().
- a948e49e2ef1 16.0 landed