diff options
| author | Tom Lane | 2013-06-15 20:22:29 +0000 |
|---|---|---|
| committer | Tom Lane | 2013-06-15 20:23:44 +0000 |
| commit | c38b64c2959662298f23ad5d86246009e7853b75 (patch) | |
| tree | 593dd0ddbb3477e89c0eacdd3c3388d3055fd18b /doc/src | |
| parent | fc02d2b245e82a385785bb4a0f49d8b617680779 (diff) | |
Use WaitLatch, not pg_usleep, for delaying in pg_sleep().
This avoids platform-dependent behavior wherein pg_sleep() might fail to be
interrupted by statement timeout, query cancel, SIGTERM, etc. Also, since
there's no reason to wake up once a second any more, we can reduce the
power consumption of a sleeping backend a tad.
Back-patch to 9.3, since use of SA_RESTART for SIGALRM makes this a bigger
issue than it used to be.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions
