↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 排序规则与编码

pg_unicode_fast

sorts by Unicode code point; Unicode character semantics

当前阅读 PG 18·选择有来源记录的版本

此版本暂无所选语言的定义,以下显示原始英文内容。

Collisdeterministic
t
Collcollate
_null_
Collctype
_null_
Colllocale
PG_UNICODE_FAST
Collicurules
_null_
Collversion
1
Collname
pg_unicode_fast
Collprovider
b
Collencoding
6
aliases
未知
manual path
/docs/18/collation.html#COLLATION-MANAGING-STANDARD
signature
未知
source oid
6411

版本定义 PG 18

23.2.2.1. Standard Collations

On all platforms, the following collations are supported:

unicode

This SQL standard collation sorts using the Unicode Collation Algorithm with the Default Unicode Collation Element Table. It is available in all encodings. ICU support is required to use this collation, and behavior may change if PostgreSQL is built with a different version of ICU. (This collation has the same behavior as the ICU root locale; see und-x-icu (for “undefined”).)

ucs_basic

This SQL standard collation sorts using the Unicode code point values rather than natural language order, and only the ASCII letters “A” through “Z” are treated as letters. The behavior is efficient and stable across all versions. Only available for encoding UTF8. (This collation has the same behavior as the libc locale specification C in UTF8 encoding.)

pg_unicode_fast

This collation sorts by Unicode code point values rather than natural language order. For the functions lower, initcap, and upper it uses Unicode full case mapping. For pattern matching (including regular expressions), it uses the Standard variant of Unicode Compatibility Properties. Behavior is efficient and stable within a Postgres major version. It is only available for encoding UTF8.

pg_c_utf8

This collation sorts by Unicode code point values rather than natural language order. For the functions lower, initcap, and upper, it uses Unicode simple case mapping. For pattern matching (including regular expressions), it uses the POSIX Compatible variant of Unicode Compatibility Properties. Behavior is efficient and stable within a PostgreSQL major version. This collation is only available for encoding UTF8.

C (equivalent to POSIX)

The C and POSIX collations are based on “traditional C” behavior. They sort by byte values rather than natural language order, and only the ASCII letters “A” through “Z” are treated as letters. The behavior is efficient and stable across all versions for a given database encoding, but behavior may vary between different database encodings.

default

The default collation selects the locale specified at database creation time.

Additional collations may be available depending on operating system support. The efficiency and stability of these additional collations depend on the collation provider, the provider version, and the locale.

比较版本

完整来源事实

attributes

{"collcollate":"_null_","collctype":"_null_","collencoding":"6","collicurules":"_null_","collisdeterministic":"t","colllocale":"PG_UNICODE_FAST","collname":"pg_unicode_fast","collprovider":"b","collversion":"1"}

catalog

{"collcollate":"_null_","collctype":"_null_","collencoding":"6","collicurules":"_null_","collisdeterministic":"t","colllocale":"PG_UNICODE_FAST","collname":"pg_unicode_fast","collnamespace":"pg_catalog","collowner":"POSTGRES","collprovider":"b","collversion":"1","descr":"sorts by Unicode code point; Unicode character semantics","oid":"6411"}

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

正文语言: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f