forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitba33775
committed
Restore initdb's old behavior of always setting the lc_xxx GUCs.
In commit3e51b27 I (tgl) caused initdb to leave lc_messages andother lc_xxx GUCs commented-out in the installed postgresql.conf fileif they were going to be set to 'C'. This was a hack for cosmeticpurposes, and it was buggy because lc_messages' wired-in default isnot 'C' but '' (empty string). That led to --no-locale not havingthe expected effect, since the postmaster would then obtainlc_messages from its startup environment.Let's just revert to the prior behavior of always de-commenting thelc_xxx entries; the argument for changing that longstanding behaviorwas weak in the first place.Also, fix postgresql.conf.sample's erroneous claim that the defaultvalue of lc_messages is 'C'. I suspect that was what misled me intomaking this mistake in the first place.Report and patch by Kyotaro Horiguchi. Back-patch to v16 wherethe problem was introduced.Discussion:https://postgr.es/m/20231122.162700.1995154567625541112.horikyota.ntt@gmail.com1 parentee95532 commitba33775
File tree
2 files changed
+9
-17
lines changed- src
- backend/utils/misc
- bin/initdb
2 files changed
+9
-17
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
728 | 728 |
| |
729 | 729 |
| |
730 | 730 |
| |
731 |
| - | |
| 731 | + | |
732 | 732 |
| |
733 | 733 |
| |
734 | 734 |
| |
|
Lines changed: 8 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1223 | 1223 |
| |
1224 | 1224 |
| |
1225 | 1225 |
| |
1226 |
| - | |
1227 |
| - | |
1228 |
| - | |
1229 |
| - | |
1230 |
| - | |
1231 |
| - | |
1232 |
| - | |
| 1226 | + | |
| 1227 | + | |
1233 | 1228 |
| |
1234 |
| - | |
1235 |
| - | |
1236 |
| - | |
| 1229 | + | |
| 1230 | + | |
1237 | 1231 |
| |
1238 |
| - | |
1239 |
| - | |
1240 |
| - | |
| 1232 | + | |
| 1233 | + | |
1241 | 1234 |
| |
1242 |
| - | |
1243 |
| - | |
1244 |
| - | |
| 1235 | + | |
| 1236 | + | |
1245 | 1237 |
| |
1246 | 1238 |
| |
1247 | 1239 |
| |
|
0 commit comments
Comments
(0)