pgsql: Add a comment warning against use of pg_usleep() for long sleeps - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Add a comment warning against use of pg_usleep() for long sleeps
Date
Msg-id E1UqpFu-0003Rw-CQ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add a comment warning against use of pg_usleep() for long sleeps.

Follow-up to commit 873ab97219caabeb2f7b390268a4fe01e2b7518c, in which
I noted that WaitLatch was a better solution in the commit log message,
but neglected to add any documentation in the code.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8c1a71d36f5d667f3c2236e0e015a48f809ca240

Modified Files
--------------
src/port/pgsleep.c |   10 ++++++++++
1 file changed, 10 insertions(+)


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: pgsql: Ensure no xid gaps during Hot Standby startup
Next
From: Bruce Momjian
Date:
Subject: Re: pgsql: Handle Unicode surrogate pairs correctly when processing JSON.