pgsql: Add a comment warning against use of pg_usleep() for long sleeps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add a comment warning against use of pg_usleep() for long sleeps
Date: 2013-06-23 18:43:18
Message-ID: E1UqpFu-0003Rw-CQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2013-06-24 15:50:38 Re: pgsql: Handle Unicode surrogate pairs correctly when processing JSON.
Previous Message Simon Riggs 2013-06-23 13:51:54 pgsql: Ensure no xid gaps during Hot Standby startup