- Notifications
You must be signed in to change notification settings - Fork5
Commite3da0d4
committed
Change ParseConfigFp() so that it doesn't process unused entry of each parameter.
When more than one setting entries of same parameter exist in theconfiguration file, PostgreSQL uses only entry appearing last inconfiguration file scan. Since the other entries are not used,ParseConfigFp() doesn't need to process them, but previously it didthat. This problematic behavior caused the configuration file scanto detect invalid settings of unused entries (e.g., existence ofmultiple entries of PGC_POSTMASTER parameter) and log the messagescomplaining about them.This commit changes the configuration file scan so that it processesonly last entry of each parameter.Note that when multiple entries of same parameter exist both inpostgresql.conf and postgresql.auto.conf, unused entries inpostgresql.conf are still processed only at postmaster startup.The problem has existed since old version, but a user is more likelyto encounter it since 9.4 where ALTER SYSTEM command was introduced.So back-patch to 9.4.Amit Kapila, slightly modified by me. Per report from Christoph Berg.1 parent49d1e03 commite3da0d4
1 file changed
+32
-2
lines changedLines changed: 32 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
562 | 562 |
| |
563 | 563 |
| |
564 | 564 |
| |
565 |
| - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
566 | 568 |
| |
567 | 569 |
| |
568 | 570 |
| |
| |||
645 | 647 |
| |
646 | 648 |
| |
647 | 649 |
| |
648 |
| - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
649 | 654 |
| |
650 | 655 |
| |
651 | 656 |
| |
652 | 657 |
| |
653 | 658 |
| |
654 | 659 |
| |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
655 | 685 |
| |
656 | 686 |
| |
657 | 687 |
| |
|
0 commit comments
Comments
(0)