forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdb2760a
committed
Disallow creating an ICU collation if the DB encoding won't support it.
Previously this was allowed, but the collation effectively vanishedinto the ether because of the way lookup_collation() works: you couldnot use the collation, nor even drop it. Seems better to give anerror up front than to leave the user wondering why it doesn't work.(Because this test is in DefineCollation not CreateCollation, it doesnot prevent pg_import_system_collations from creating ICU collations,regardless of the initially-chosen encoding.)Per bug #17170 from Andrew Bille. Back-patch to v10 where ICU supportwas added.Discussion:https://postgr.es/m/17170-95845cf3f0a9c36d@postgresql.org1 parent0c6a6a0 commitdb2760a
1 file changed
+19
-0
lines changedLines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
218 | 236 |
| |
| 237 | + | |
219 | 238 |
| |
220 | 239 |
| |
221 | 240 |
| |
|
0 commit comments
Comments
(0)