View a markdown version of this page

DB_COLLATION - Amazon Redshift

Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026. We will start enforcing it in phases. For more information on the details of Python end of life and migration options, see the blog post that was published on June 30, 2025.

DB_COLLATION

Returns the collation setting of the current database.

Syntax

db_collation()

Return type

Returns a VARCHAR string representing the collation of the current database. Possible values are case_sensitive or case_insensitive.

Example

The following example returns the collation of the current database.

select db_collation(); db_collation ---------------- case_sensitive (1 row)