Defining PostgreSQL Collations

The following properties are applicable to a PostgreSQL Collation object.

Tab

Section

Property

Description

Additional Information

 

 

Name

Specifies the name of the collation

 

 

 

Schema

Specifies the schema options for the schema generation

Select the schema from the drop-down list or click New icon in property editors to create a new object to create a new object.

 

 

If Not Exists

Specifies that if the collation already exists, no exception is thrown, and no action happens

 

 

 

Generate

Specifies whether a SQL statement for the collation is generated during forward engineering

 

General

General Options

Locale

Specifies the local name of the collation

This shortcut simultaneously sets LC_COLLATE and LC_CTYPE. If you use this option, you cannot individually specify either parameter.

LC_Collate

Specifies that the LC_COLLATE locale category should use the specified operating system locale. The locale must apply to the current database encoding.

 

LC_CType

Specifies that the LC_CTYPE locale category should use the specified operating system locale. The locale must apply to the current database encoding.

 

Provider

Specifies the provider to use for locale services associated with this collation. Possible values are icu (if the server was built with ICU support) or libc. libc is the default.

Icu: Indicates the advanced, consistent, and locale-aware collation rules based on Unicode, suitable for diverse and multi-language sorting.

Libc: Indicates the collation rules based on the operating system's C library, with behavior that can vary and may be less flexible compared to ICU.

Is Deterministic

Specifies whether the collation should use deterministic comparisons

 

ICU Rules

Specifies additional collation rules to customize the behavior of the collation. The ICU only supports this feature.

 

Version

Specifies the version string to store with the collation

 

Copy Options

Copy Collation

Specifies the name of an existing collation to copy. The new collation will have the same properties as the existing one but will be an independent object.

 

  1. (Optional) Click the Comment tab and enter any comments you want to associate with the object.
  2. (Optional) Click the UDP tab to work with user-defined properties for the object.
  3. (Optional) Click the Notes tab to view and edit user notes.
  4. (Optional) Click the Extended Notes tab to view or edit user notes.
  5. Click Close.

    The collation is defined, and the PostgreSQL Collation Editor closes.

For more information, refer to PostgreSQL documentation.