Commit 3dad73e
committed
Add -F option to pg_receivexlog, for specifying fsync interval.
This allows us to specify the maximum time to issue fsync to ensure
the received WAL file is safely flushed to disk. Without this,
pg_receivexlog always flushes WAL file only when it's closed and
which can cause WAL data to be lost at the event of a crash.
Furuya Osamu, heavily modified by me.1 parent 1add956 commit 3dad73eCopy full SHA for 3dad73e
File tree
Expand file treeCollapse file tree
5 files changed
+195
-70
lines changedOpen diff view settings
Filter options
- doc/src/sgml/ref
- src/bin/pg_basebackup
Expand file treeCollapse file tree
5 files changed
+195
-70
lines changedOpen diff view settings
Collapse file
doc/src/sgml/ref/pg_receivexlog.sgml
Copy file name to clipboardExpand all lines: doc/src/sgml/ref/pg_receivexlog.sgml+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
105 | 105 | |
106 | 106 | |
107 | 107 | |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
108 | 123 | |
109 | 124 | |
110 | 125 | |
|
Collapse file
src/bin/pg_basebackup/pg_basebackup.c
Copy file name to clipboardExpand all lines: src/bin/pg_basebackup/pg_basebackup.c+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
371 | 371 | |
372 | 372 | |
373 | 373 | |
374 | | - |
| 374 | + |
375 | 375 | |
376 | 376 | |
377 | 377 | |
|
Collapse file
src/bin/pg_basebackup/pg_receivexlog.c
Copy file name to clipboardExpand all lines: src/bin/pg_basebackup/pg_receivexlog.c+16-2Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
| 39 | + |
39 | 40 | |
40 | 41 | |
41 | 42 | |
| ||
62 | 63 | |
63 | 64 | |
64 | 65 | |
| 66 | + |
| 67 | + |
65 | 68 | |
66 | 69 | |
67 | 70 | |
| ||
330 | 333 | |
331 | 334 | |
332 | 335 | |
333 | | - |
| 336 | + |
| 337 | + |
334 | 338 | |
335 | 339 | |
336 | 340 | |
| ||
360 | 364 | |
361 | 365 | |
362 | 366 | |
| 367 | + |
363 | 368 | |
364 | 369 | |
365 | 370 | |
| ||
389 | 394 | |
390 | 395 | |
391 | 396 | |
392 | | - |
| 397 | + |
393 | 398 | |
394 | 399 | |
395 | 400 | |
| ||
436 | 441 | |
437 | 442 | |
438 | 443 | |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
| 450 | + |
| 451 | + |
| 452 | + |
439 | 453 | |
440 | 454 | |
441 | 455 | |
|
0 commit comments