SHOW COLLATION

Precautions

N/A

Function

Displays the character sequence of all supported servers.

Syntax

SHOW COLLATION [LIKE 'pattern' | WHERE expr]

Parameter Description

  • WHERE expr

    Filters expressions.

  • LIKE 'pattern'

    Indicates that the pattern regular expression matches the collation name.

Return Result Set

ColumnDescriptionRemarks
collationIndicates the collation set name.
charsetIndicates the character set associated with collation set.
idIndicates character set description.The column corresponds to the OID of the row in the pg_collation table.
defaultIndicates whether the collation set corresponds to the character set.openGauss does not have a default collation order. This column is left empty.
compiledIndicates whether the collation set is compiled.The value of this column is Yes.
sortlenIndicates the memory size required for character set collation.This column is empty.

Examples

openGauss=# SHOW COLLATION LIKE 'aa%';
    collation     | charset |  id   | default | compiled | sortlen
------------------+---------+-------+---------+----------+----------
 aa_DJ            | utf8    | 13450 |         | Yes      |
 aa_DJ            | latin1  | 13451 |         | Yes      |
 aa_DJ.iso88591   | latin1  | 13452 |         | Yes      |
 aa_DJ.utf8       | utf8    | 13453 |         | Yes      |
 aa_ER            | utf8    | 13454 |         | Yes      |
 aa_ER.utf8       | utf8    | 13455 |         | Yes      |
 aa_ER.utf8@saaho | utf8    | 13456 |         | Yes      |
 aa_ER@saaho      | utf8    | 13457 |         | Yes      |
 aa_ET            | utf8    | 13458 |         | Yes      |
 aa_ET.utf8       | utf8    | 13459 |         | Yes      |
(10 rows)
Feedback
编组 3备份
    openGauss 2024-10-08 01:19:39
    cancel