forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3e3f659
committed
Change first call of ProcessConfigFile so as to process only data_directory.
When both postgresql.conf and postgresql.auto.conf have their own entry ofthe same parameter, PostgreSQL uses the entry in postgresql.auto.conf becauseit appears last in the configuration scan. IOW, the other entries which appearearlier are ignored. But, previously, ProcessConfigFile() detected the invalidsettings of even those unused entries and emitted the error messagescomplaining about them, at postmaster startup. Complaining about the entriesto ignore is basically useless.This problem happened because ProcessConfigFile() was called twice atpostmaster startup and the first call read only postgresql.conf. That is, thefirst call could check the entry which might be ignored eventually bythe second call which read both postgresql.conf and postgresql.auto.conf.To work around the problem, this commit changes ProcessConfigFile so thatits first call processes only data_directory and the second one does all theentries. It's OK to process data_directory in the first call because it'sensured that data_directory doesn't exist in postgresql.auto.conf.Back-patch to 9.4 where postgresql.auto.conf was added.Patch by me. Review by Amit Kapila1 parente15c4ab commit3e3f659
2 files changed
+85
-12
lines changedLines changed: 78 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| 48 | + | |
| 49 | + | |
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
| |||
151 | 153 |
| |
152 | 154 |
| |
153 | 155 |
| |
154 |
| - | |
155 |
| - | |
156 |
| - | |
| 156 | + | |
157 | 157 |
| |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
162 | 216 |
| |
163 | 217 |
| |
164 | 218 |
| |
| |||
677 | 731 |
| |
678 | 732 |
| |
679 | 733 |
| |
680 |
| - | |
| 734 | + | |
681 | 735 |
| |
682 | 736 |
| |
683 | 737 |
| |
| |||
857 | 911 |
| |
858 | 912 |
| |
859 | 913 |
| |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
860 | 929 |
| |
861 | 930 |
| |
862 | 931 |
| |
| |||
870 | 939 |
| |
871 | 940 |
| |
872 | 941 |
| |
873 |
| - | |
874 |
| - | |
875 |
| - | |
876 |
| - | |
| 942 | + | |
877 | 943 |
| |
878 | 944 |
| |
879 | 945 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4339 | 4339 |
| |
4340 | 4340 |
| |
4341 | 4341 |
| |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
4342 | 4349 |
| |
4343 | 4350 |
| |
4344 | 4351 |
| |
|
0 commit comments
Comments
(0)