]> granicus.if.org Git - postgresql/commit
Clean up handling of COLLATE clauses in index column definitions.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Mar 2011 19:29:52 +0000 (15:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Mar 2011 19:29:52 +0000 (15:29 -0400)
commit3bba9ce945a702ab116fcedb9c0b970ecd69c9dd
tree577ec34231982a915e13db6ea8ed98521ebc2150
parent472671e133da77f280e87cb47c6544c75572df6b
Clean up handling of COLLATE clauses in index column definitions.

Ensure that COLLATE at the top level of an index expression is treated the
same as a grammatically separate COLLATE.  Fix bogus reverse-parsing logic
in pg_get_indexdef.
src/backend/commands/indexcmds.c
src/backend/utils/adt/ruleutils.c
src/test/regress/expected/collate.linux.utf8.out
src/test/regress/expected/collate.out
src/test/regress/sql/collate.linux.utf8.sql
src/test/regress/sql/collate.sql