- Notifications
You must be signed in to change notification settings - Fork5
Commit820ddb2
committed
Further tweak commit_timestamp behavior
As pointed out by Fujii Masao, we weren't quite there on a standbybehaving sanely: first because we were failing to acquire the correctstate in the case where no XLOG_PARAMETER_CHANGE message was sent(because a checkpoint had already happened after the setting was changedin the master, and then the standby was restarted); and second becausepromoting the standby with the feature enabled failed to activate it ifthe master had the feature disabled.This patch fixes both those misbehaviors hopefully withoutre-introducing any old problems.Also change the hint emitted in a standby together with the errormessage about the feature being disabled, to make it point out that theplace to chance the setting is the master. Otherwise, if the setting isalready enabled in the standby, it is very confusing to have it say thatthe setting must be enabled ...Authors: Álvaro Herrera, Petr Jelínek.Backpatch to 9.5.1 parent344cdff commit820ddb2
File tree
3 files changed
+25
-15
lines changed- src
- backend/access/transam
- include/access
3 files changed
+25
-15
lines changedLines changed: 19 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| 109 | + | |
109 | 110 |
| |
110 | 111 |
| |
111 | 112 |
| |
| |||
297 | 298 |
| |
298 | 299 |
| |
299 | 300 |
| |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 |
| - | |
304 |
| - | |
| 301 | + | |
305 | 302 |
| |
306 | 303 |
| |
307 | 304 |
| |
| |||
368 | 365 |
| |
369 | 366 |
| |
370 | 367 |
| |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
| 368 | + | |
376 | 369 |
| |
377 | 370 |
| |
378 | 371 |
| |
| |||
384 | 377 |
| |
385 | 378 |
| |
386 | 379 |
| |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
387 | 393 |
| |
388 | 394 |
| |
389 | 395 |
| |
| |||
510 | 516 |
| |
511 | 517 |
| |
512 | 518 |
| |
513 |
| - | |
| 519 | + | |
514 | 520 |
| |
515 | 521 |
| |
516 | 522 |
| |
| |||
544 | 550 |
| |
545 | 551 |
| |
546 | 552 |
| |
547 |
| - | |
| 553 | + | |
548 | 554 |
| |
549 | 555 |
| |
550 | 556 |
| |
551 | 557 |
| |
552 | 558 |
| |
553 |
| - | |
| 559 | + | |
554 | 560 |
| |
555 | 561 |
| |
556 | 562 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6568 | 6568 |
| |
6569 | 6569 |
| |
6570 | 6570 |
| |
| 6571 | + | |
| 6572 | + | |
| 6573 | + | |
| 6574 | + | |
6571 | 6575 |
| |
6572 | 6576 |
| |
6573 | 6577 |
| |
| |||
7339 | 7343 |
| |
7340 | 7344 |
| |
7341 | 7345 |
| |
7342 |
| - | |
| 7346 | + | |
7343 | 7347 |
| |
7344 | 7348 |
| |
7345 | 7349 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
| 37 | + | |
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
|
0 commit comments
Comments
(0)