aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-10-01 09:29:27 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-10-01 09:29:27 +0300
commit396ef1561878a5d42ea9191f60098b7fbbec6e41 (patch)
tree868a11b9fc6243b82184d1f1f984d8600447e048 /contrib/postgres_fdw/postgres_fdw.c
parent2632bcce5e767a2b5901bbef54ae52df061eee72 (diff)
downloadpostgresql-396ef1561878a5d42ea9191f60098b7fbbec6e41.tar.gz
postgresql-396ef1561878a5d42ea9191f60098b7fbbec6e41.zip
Fix busy-wait in pgbench, with --rate.
If --rate was used to throttle pgbench, it failed to sleep when it had nothing to do, leading to a busy-wait with 100% CPU usage. This bug was introduced in the refactoring in v10. Before that, sleep() was called with a timeout, even when there were no file descriptors to wait for. Reported by Jeff Janes, patch by Fabien COELHO. Backpatch to v10. Discussion: https://www.postgresql.org/message-id/CAMkU%3D1x5hoX0pLLKPRnXCy0T8uHoDvXdq%2B7kAM9eoC9_z72ucw%40mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions