官术网_书友最值得收藏!

Introducing ICU encodings

When a PostgreSQL database is created, the administrator can choose the encoding, which should be used to store the data. Basically, the configuration decides which characters exist and in which order they are displayed. Here is an example—de_AT@UTF-8. In this case, we will use Unicode characters, which will be displayed in an Austrian sort order (Austrians speak some sort of German). So, de_AT will define the order in which the data will be sorted.

To achieve this kind of sorting, PostgreSQL relies heavily on the operating system. The trouble is that if the sort order of characters changes in the operating system for some reason (maybe because of a bug or because of some other reason), PostgreSQL will have troubles with its indexes. A normal b-tree index is basically a sorted list, and if the sort order changes, naturally, there is a problem.

The introduction of the ICU library is supposed to fix this problem. ICU offers stronger promises than the operating system and is, therefore, more suitable for long-term storage of data. With the introduction of PostgreSQL 10.0, ICU encodings can be enabled.

主站蜘蛛池模板: 介休市| 土默特左旗| 临高县| 婺源县| 彭山县| 务川| 赫章县| 靖江市| 台前县| 淅川县| 星座| 中阳县| 龙山县| 安庆市| 伊金霍洛旗| 襄樊市| 鹤峰县| 延吉市| 剑阁县| 长岭县| 会泽县| 吕梁市| 通城县| 云南省| 玉龙| 定州市| 甘谷县| 嘉鱼县| 高安市| 黄龙县| 隆林| 汝州市| 互助| 皮山县| 乳山市| 商洛市| 清远市| 深州市| 修水县| 锡林郭勒盟| 临洮县|