aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer/bufmgr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-06-15 16:22:29 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-06-15 16:23:44 -0400
commitc38b64c2959662298f23ad5d86246009e7853b75 (patch)
tree593dd0ddbb3477e89c0eacdd3c3388d3055fd18b /src/backend/storage/buffer/bufmgr.c
parentfc02d2b245e82a385785bb4a0f49d8b617680779 (diff)
downloadpostgresql-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/storage/buffer/bufmgr.c')
0 files changed, 0 insertions, 0 deletions