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

  • Mastering PostgreSQL 10
  • Hans Jürgen Sch?nig
  • 192字
  • 2021-06-30 19:03:48

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.

主站蜘蛛池模板: 青田县| 临城县| 高陵县| 如皋市| 长沙县| 湛江市| 开平市| 康保县| 延川县| 汤阴县| 华安县| 旬邑县| 咸宁市| 高青县| 马龙县| 厦门市| 乐陵市| 突泉县| 宁南县| 克拉玛依市| 工布江达县| 乌审旗| 上栗县| 西华县| 白银市| 石城县| 临朐县| 长沙市| 云阳县| 高州市| 义乌市| 中西区| 尖扎县| 乡宁县| 建平县| 德保县| 金沙县| 稻城县| 旺苍县| 梁山县| 新巴尔虎左旗|