forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd6657d2
committed
Treat negative values of recovery_min_apply_delay as having no effect.
At one point in the development of this feature, it was claimed thatallowing negative values would be useful to compensate for timezonedifferences between master and slave servers. That was based on a mistakenassumption that commit timestamps are recorded in local time; but of coursethey're in UTC. Nor is a negative apply delay likely to be a sane way ofcoping with server clock skew. However, the committed patch still treatednegative delays as doing something, and the timezone misapprehensionsurvived in the user documentation as well.If recovery_min_apply_delay were a proper GUC we'd just set the minimumallowed value to be zero; but for the moment it seems better to treatnegative settings as if they were zero.In passing do some extra wordsmithing on the parameter's documentation,including correcting a second misstatement that the parameter affectsprocessing of Restore Point records.Issue noted by Michael Paquier, who also provided the code patch; docchanges by me. Back-patch to 9.4 where the feature was introduced.1 parentf9769c7 commitd6657d2
File tree
2 files changed
+12
-13
lines changed- doc/src/sgml
- src/backend/access/transam
2 files changed
+12
-13
lines changedLines changed: 11 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
458 | 458 |
| |
459 | 459 |
| |
460 | 460 |
| |
461 |
| - | |
| 461 | + | |
462 | 462 |
| |
463 |
| - | |
| 463 | + | |
464 | 464 |
| |
465 | 465 |
| |
466 | 466 |
| |
| |||
469 | 469 |
| |
470 | 470 |
| |
471 | 471 |
| |
472 |
| - | |
473 |
| - | |
| 472 | + | |
| 473 | + | |
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
477 |
| - | |
478 |
| - | |
479 |
| - | |
| 477 | + | |
| 478 | + | |
480 | 479 |
| |
481 | 480 |
| |
482 |
| - | |
483 |
| - | |
484 |
| - | |
485 |
| - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
486 | 485 |
| |
487 | 486 |
| |
488 | 487 |
| |
489 | 488 |
| |
490 | 489 |
| |
491 | 490 |
| |
492 |
| - | |
| 491 | + | |
493 | 492 |
| |
494 | 493 |
| |
495 | 494 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5430 | 5430 |
| |
5431 | 5431 |
| |
5432 | 5432 |
| |
5433 |
| - | |
| 5433 | + | |
5434 | 5434 |
| |
5435 | 5435 |
| |
5436 | 5436 |
| |
|
0 commit comments
Comments
(0)