Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
be1cc695
Commit
be1cc695
authored
May 11, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pg_autovacuum -s flag to handle values > 2000 by using sleep()
instead of pg_usleep. Backpatch to 8.0.X.
parent
7b3bf602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
contrib/pg_autovacuum/pg_autovacuum.c
contrib/pg_autovacuum/pg_autovacuum.c
+11
-2
No files found.
contrib/pg_autovacuum/pg_autovacuum.c
View file @
be1cc695
...
...
@@ -4,7 +4,7 @@
* Revisions by Christopher B. Browne, Liberty RMS
* Win32 Service code added by Dave Page
*
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.3
2 2005/05/11 14:53:43
momjian Exp $
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.3
3 2005/05/11 17:57:56
momjian Exp $
*/
#include "postgres_fe.h"
...
...
@@ -1749,7 +1749,16 @@ VacuumLoop(int argc, char **argv)
fflush
(
LOGOUTPUT
);
}
pg_usleep
(
sleep_secs
*
1000000L
);
/* Larger Pause between outer loops */
/* Larger Pause between outer loops */
/*
* pg_usleep() is wrong here because its maximum is ~2000 seconds,
* and we don't need signal interruptability on Win32 here.
*/
#ifndef WIN32
sleep
(
sleep_secs
);
/* Unix sleep is seconds */
#else
sleep
(
sleep_secs
*
1000
);
/* Win32 sleep() is milliseconds */
#endif
gettimeofday
(
&
then
,
0
);
/* Reset time counter */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment