Commit 9d522cb
committed
Fix another oversight in logging of changes in postgresql.conf settings.
We were using GetConfigOption to collect the old value of each setting,
overlooking the possibility that it didn't exist yet. This does happen
in the case of adding a new entry within a custom variable class, as
exhibited in bug #6097 from Maxim Boguk.
To fix, add a missing_ok parameter to GetConfigOption, but only in 9.1
and HEAD --- it seems possible that some third-party code is using that
function, so changing its API in a minor release would cause problems.
In 9.0, create a near-duplicate function instead.1 parent 89fd72c commit 9d522cb
File tree
4 files changed
+20
-11
lines changed- src
- backend
- commands
- utils/misc
- include/utils
4 files changed
+20
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
| 817 | + | |
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
824 | | - | |
| 824 | + | |
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
| 839 | + | |
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5828 | 5828 | | |
5829 | 5829 | | |
5830 | 5830 | | |
5831 | | - | |
5832 | | - | |
| 5831 | + | |
| 5832 | + | |
| 5833 | + | |
| 5834 | + | |
| 5835 | + | |
5833 | 5836 | | |
5834 | 5837 | | |
5835 | 5838 | | |
| |||
5839 | 5842 | | |
5840 | 5843 | | |
5841 | 5844 | | |
5842 | | - | |
| 5845 | + | |
5843 | 5846 | | |
5844 | 5847 | | |
5845 | 5848 | | |
5846 | 5849 | | |
5847 | 5850 | | |
5848 | 5851 | | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
5849 | 5855 | | |
5850 | 5856 | | |
5851 | | - | |
| 5857 | + | |
| 5858 | + | |
| 5859 | + | |
5852 | 5860 | | |
5853 | 5861 | | |
5854 | 5862 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
0 commit comments