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
1b92aeb9
Commit
1b92aeb9
authored
Dec 15, 2008
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve comment about why sleep is used by pg_standby to handle 'copy'
file size problem.
parent
30c6202a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
contrib/pg_standby/pg_standby.c
contrib/pg_standby/pg_standby.c
+6
-7
No files found.
contrib/pg_standby/pg_standby.c
View file @
1b92aeb9
/*
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.1
5 2008/12/15 21:39:25
momjian Exp $
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.1
6 2008/12/15 22:13:02
momjian Exp $
*
*
* pg_standby.c
...
...
@@ -179,12 +179,11 @@ CustomizableNextWALFileReady()
#ifdef WIN32
/*
* Windows reports that the file has the right number of bytes
* even though the file is still being copied and cannot be opened
* by pg_standby yet. So we wait for sleeptime secs before
* attempting to restore. If that is not enough, we will rely on
* the retry/holdoff mechanism. GNUWin32's cp does not have
* this problem.
* Windows 'cp' sets the final file size before the copy is
* complete, and not yet ready to be opened by pg_standby.
* So we wait for sleeptime secs before attempting to restore.
* If that is not enough, we will rely on the retry/holdoff
* mechanism. GNUWin32's cp does not have this problem.
*/
pg_usleep
(
sleeptime
*
1000000L
);
#endif
...
...
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