forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit70b9b9b
committed
Change initdb and CREATE DATABASE to actively reject attempts to create
databases with encodings that are incompatible with the server's LC_CTYPElocale, when we can determine that (which we can on most modern platforms,I believe). C/POSIX locale is compatible with all encodings, of course,so there is still some usefulness to CREATE DATABASE's ENCODING option,but this will insulate us against all sorts of recurring complaintscaused by mismatched settings.I moved initdb's existing LC_CTYPE-to-encoding mapping knowledge intoa new src/port/ file so it could be shared by CREATE DATABASE.1 parentae0b90f commit70b9b9b
File tree
8 files changed
+400
-263
lines changed- doc/src/sgml
- ref
- src
- backend/commands
- bin/initdb
- include
- port
8 files changed
+400
-263
lines changedLines changed: 35 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
249 | 249 |
| |
250 | 250 |
| |
251 | 251 |
| |
252 |
| - | |
| 252 | + | |
253 | 253 |
| |
254 | 254 |
| |
255 | 255 |
| |
| |||
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
304 |
| - | |
| 304 | + | |
| 305 | + | |
305 | 306 |
| |
306 | 307 |
| |
307 | 308 |
| |
| |||
314 | 315 |
| |
315 | 316 |
| |
316 | 317 |
| |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
317 | 332 |
| |
318 | 333 |
| |
319 | 334 |
| |
| |||
716 | 731 |
| |
717 | 732 |
| |
718 | 733 |
| |
719 |
| - | |
| 734 | + | |
| 735 | + | |
720 | 736 |
| |
721 | 737 |
| |
722 | 738 |
| |
| |||
731 | 747 |
| |
732 | 748 |
| |
733 | 749 |
| |
734 |
| - | |
| 750 | + | |
735 | 751 |
| |
736 | 752 |
| |
737 | 753 |
| |
| |||
756 | 772 |
| |
757 | 773 |
| |
758 | 774 |
| |
759 |
| - | |
760 |
| - | |
761 |
| - | |
762 |
| - | |
763 |
| - | |
764 |
| - | |
765 |
| - | |
766 |
| - | |
767 |
| - | |
768 |
| - | |
769 |
| - | |
770 |
| - | |
771 |
| - | |
772 |
| - | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
773 | 782 |
| |
774 | 783 |
| |
775 | 784 |
| |
776 |
| - | |
777 |
| - | |
778 |
| - | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
779 | 792 |
| |
780 | 793 |
| |
781 | 794 |
| |
|
Lines changed: 18 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
| 111 | + | |
111 | 112 |
| |
112 | 113 |
| |
113 | 114 |
| |
| |||
178 | 179 |
| |
179 | 180 |
| |
180 | 181 |
| |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
181 | 197 |
| |
182 | 198 |
| |
183 | 199 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
423 | 423 |
| |
424 | 424 |
| |
425 | 425 |
| |
426 |
| - | |
| 426 | + | |
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
|
Lines changed: 29 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
96 | 97 |
| |
97 | 98 |
| |
98 | 99 |
| |
| 100 | + | |
99 | 101 |
| |
100 | 102 |
| |
101 | 103 |
| |
| |||
254 | 256 |
| |
255 | 257 |
| |
256 | 258 |
| |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
257 | 285 |
| |
258 | 286 |
| |
259 | 287 |
| |
|
0 commit comments
Comments
(0)