Changes between Initial Version and Version 1 of Ticket #9682, comment 15


Ignore:
Timestamp:
Sep 20, 2015, 5:55:04 PM (9 years ago)
Author:
Craig Ringer

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9682, comment 15

    initial v1  
    55to use POSIX  byte-order based collation.
    66
     7It'll be important to support the `COLLATE` clause for  index creation too. Otherwise users will get upset when their queries don't use the index that seems to be appropriate for the query.
     8
     9Most of the time it's best to specify `COLLATE` on a column in DDL, not in a query. That way queries using the column and indexes on the column automatically use the desired collation. You can "declare" a given column to be binary-sorted text where you don't care about national language collation.
     10
     11{{{
     12CREATE TABLE some_table (
     13    ....,
     14    test_field text COLLATE "C",
     15    ...
     16);
     17}}}
     18
    719I ''strongly'' recommend a solution using the `COLLATE` clause, but keep in mind that it's not a global query modifier. It affects the operator or `ORDER BY` clause it's attached to, not the whole query.
    820
Back to Top