diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-06-15 16:22:29 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-06-15 16:23:44 -0400 |
commit | c38b64c2959662298f23ad5d86246009e7853b75 (patch) | |
tree | 593dd0ddbb3477e89c0eacdd3c3388d3055fd18b /src/backend/access/transam/xlog.c | |
parent | fc02d2b245e82a385785bb4a0f49d8b617680779 (diff) | |
download | postgresql-c38b64c2959662298f23ad5d86246009e7853b75.tar.gz postgresql-c38b64c2959662298f23ad5d86246009e7853b75.zip |
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 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions