DB_COLLATION - Amazon Redshift
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026. For more information, see the blog post .

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)