forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc7db01e
committed
Don't allow creation of database with ICU locale with unsupported encoding
Check in CREATE DATABASE and initdb that the selected encoding issupported by ICU. Before, they would pass but users would later getan error from the server when they tried to use the database.Also document that initdb sets the encoding to UTF8 by default if theICU locale provider is chosen.Author: Marina Polyakova <m.polyakova@postgrespro.ru>Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Discussion:https://www.postgresql.org/message-id/6dd6db0984d86a51b7255ba79f111971@postgrespro.ru1 parentcf2c7a7 commitc7db01e
File tree
5 files changed
+57
-4
lines changed- doc/src/sgml/ref
- src
- backend/commands
- bin
- initdb
- t
- scripts/t
5 files changed
+57
-4
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
212 |
| - | |
213 |
| - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
214 | 215 |
| |
215 | 216 |
| |
216 | 217 |
| |
|
Lines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1034 | 1034 |
| |
1035 | 1035 |
| |
1036 | 1036 |
| |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1037 | 1043 |
| |
1038 | 1044 |
| |
1039 | 1045 |
| |
| |||
1042 | 1048 |
| |
1043 | 1049 |
| |
1044 | 1050 |
| |
1045 |
| - | |
1046 | 1051 |
| |
1047 |
| - | |
1048 | 1052 |
| |
| 1053 | + | |
1049 | 1054 |
| |
1050 | 1055 |
| |
1051 | 1056 |
| |
|
Lines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2042 | 2042 |
| |
2043 | 2043 |
| |
2044 | 2044 |
| |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
2045 | 2066 |
| |
2046 | 2067 |
| |
2047 | 2068 |
| |
| |||
2310 | 2331 |
| |
2311 | 2332 |
| |
2312 | 2333 |
| |
| 2334 | + | |
2313 | 2335 |
| |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
2314 | 2339 |
| |
2315 | 2340 |
| |
2316 | 2341 |
| |
| |||
2362 | 2387 |
| |
2363 | 2388 |
| |
2364 | 2389 |
| |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
2365 | 2394 |
| |
2366 | 2395 |
| |
2367 | 2396 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
121 | 130 |
| |
122 | 131 |
| |
123 | 132 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
53 | 62 |
| |
54 | 63 |
| |
55 | 64 |
| |
|
0 commit comments
Comments
(0)