diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2010-03-24 20:11:12 +0000 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2010-03-24 20:11:12 +0000 |
commit | 08882ce74cd6775bd8446eb7343c61a3e5648620 (patch) | |
tree | 31b260f3ac819933082f250864d165f65b90f2a6 /src/tutorial/funcs.c | |
parent | 16a4186d6aab46953f03f52b7a6d9ede7c89eaf7 (diff) | |
download | postgresql-08882ce74cd6775bd8446eb7343c61a3e5648620.tar.gz postgresql-08882ce74cd6775bd8446eb7343c61a3e5648620.zip |
Reduce CPU utilisation of WALSender process. Process was using 10% CPU
doing nothing, caused by naptime specified in milliseconds yet units of
pg_usleep() parameter is microseconds. Correctly specifying units
reduces call frequency by 1000. Reduction in CPU consumption verified.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions