Add a comment warning against use of pg_usleep() for long sleeps.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/port/pgsleep.c | modified | +10 −0 |