aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_utils_num.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-22 20:19:58 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-22 20:19:58 -0400
commitbb850306307d3d6ebb611c4039ae127236eb1699 (patch)
tree94888ee1b7835594e86d26864a4f87b4d03d6fbf /contrib/btree_gist/btree_utils_num.c
parentae20bf1740c53494e15fadfd8c2c6444032a3441 (diff)
downloadpostgresql-bb850306307d3d6ebb611c4039ae127236eb1699.tar.gz
postgresql-bb850306307d3d6ebb611c4039ae127236eb1699.zip
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.)
Diffstat (limited to 'contrib/btree_gist/btree_utils_num.c')
-rw-r--r--contrib/btree_gist/btree_utils_num.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/btree_gist/btree_utils_num.c b/contrib/btree_gist/btree_utils_num.c
index 64c95854df8..a3da5802df2 100644
--- a/contrib/btree_gist/btree_utils_num.c
+++ b/contrib/btree_gist/btree_utils_num.c
@@ -184,9 +184,11 @@ gbt_num_bin_union(Datum *u, GBT_NUMKEY *e, const gbtree_ninfo *tinfo)
/*
-** The GiST consistent method
-*/
-
+ * The GiST consistent method
+ *
+ * Note: we currently assume that no datatypes that use this routine are
+ * collation-aware; so we don't bother passing collation through.
+ */
bool
gbt_num_consistent(const GBT_NUMKEY_R *key,
const void *query,