Fix contrib/btree_gist to handle collations properly.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 23 Apr 2011 00:19:58 +0000 (20:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 23 Apr 2011 00:19:58 +0000 (20:19 -0400)
commitbb850306307d3d6ebb611c4039ae127236eb1699
tree94888ee1b7835594e86d26864a4f87b4d03d6fbf
parentae20bf1740c53494e15fadfd8c2c6444032a3441
Fix contrib/btree_gist to handle collations properly.

Make use of the collation attached to the index column, instead of
hard-wiring DEFAULT_COLLATION_OID.  (Note: in theory this could require
reindexing btree_gist indexes on textual columns, but I rather doubt anyone
has one with a non-default declared collation as yet.)
contrib/btree_gist/btree_bit.c
contrib/btree_gist/btree_bytea.c
contrib/btree_gist/btree_numeric.c
contrib/btree_gist/btree_text.c
contrib/btree_gist/btree_utils_num.c
contrib/btree_gist/btree_utils_var.c
contrib/btree_gist/btree_utils_var.h