mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
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.)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user