mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Make a code-cleanup pass over the collations patch.
This patch is almost entirely cosmetic --- mostly cleaning up a lot of neglected comments, and fixing code layout problems in places where the patch made lines too long and then pgindent did weird things with that. I did find a bug-of-omission in equalTupleDescs().
This commit is contained in:
@@ -188,9 +188,8 @@ CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ <replaceable class="parameter">name</
|
||||
The name of the collation to use for the index. By default,
|
||||
the index uses the collation declared for the column to be
|
||||
indexed or the result collation of the expression to be
|
||||
indexed. Indexes with nondefault collations are
|
||||
available for use by queries that involve expressions using
|
||||
nondefault collations.
|
||||
indexed. Indexes with non-default collations can be useful for
|
||||
queries that involve expressions using non-default collations.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -537,6 +536,13 @@ CREATE INDEX ON films ((lower(title)));
|
||||
will choose a name, typically <literal>films_lower_idx</>.)
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To create an index with non-default collation:
|
||||
<programlisting>
|
||||
CREATE INDEX title_idx_german ON films (title COLLATE "de_DE");
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To create an index with non-default sort ordering of nulls:
|
||||
<programlisting>
|
||||
|
Reference in New Issue
Block a user