This documentation is sourced from a third-party project and is not maintained by pgEdge.
Indexes and Collations
Indexes and Collations
An index can support only one collation per index column. If multiple collations are of interest, multiple indexes may be needed.
Consider these statements:
CREATE TABLE test1c (
id integer,
content varchar COLLATE "x"
);
CREATE INDEX test1c_content_index ON test1c (content);
SELECT * FROM test1c WHERE content > CONSTANT;
SELECT * FROM test1c WHERE content > CONSTANT COLLATE "y";
"y" collation, like this:
CREATE INDEX test1c_content_y_index ON test1c (content COLLATE "y");