Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
1b92aeb9
Commit
1b92aeb9
authored
16 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Improve comment about why sleep is used by pg_standby to handle 'copy'
file size problem.
parent
30c6202a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/pg_standby/pg_standby.c
+6
-7
6 additions, 7 deletions
contrib/pg_standby/pg_standby.c
with
6 additions
and
7 deletions
contrib/pg_standby/pg_standby.c
+
6
−
7
View file @
1b92aeb9
/*
/*
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.1
5
2008/12/15 2
1:39:25
momjian Exp $
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.1
6
2008/12/15 2
2:13:02
momjian Exp $
*
*
*
*
* pg_standby.c
* pg_standby.c
...
@@ -179,12 +179,11 @@ CustomizableNextWALFileReady()
...
@@ -179,12 +179,11 @@ CustomizableNextWALFileReady()
#ifdef WIN32
#ifdef WIN32
/*
/*
* Windows reports that the file has the right number of bytes
* Windows 'cp' sets the final file size before the copy is
* even though the file is still being copied and cannot be opened
* complete, and not yet ready to be opened by pg_standby.
* by pg_standby yet. So we wait for sleeptime secs before
* So we wait for sleeptime secs before attempting to restore.
* attempting to restore. If that is not enough, we will rely on
* If that is not enough, we will rely on the retry/holdoff
* the retry/holdoff mechanism. GNUWin32's cp does not have
* mechanism. GNUWin32's cp does not have this problem.
* this problem.
*/
*/
pg_usleep
(
sleeptime
*
1000000L
);
pg_usleep
(
sleeptime
*
1000000L
);
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment