Fix contrib/btree_gist to handle collations properly.
Tom Lane <tgl@sss.pgh.pa.us>
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.)
Files
| Path | Change | +/− |
|---|---|---|
| contrib/btree_gist/btree_bit.c | modified | +37 −20 |
| contrib/btree_gist/btree_bytea.c | modified | +34 −19 |
| contrib/btree_gist/btree_numeric.c | modified | +33 −19 |
| contrib/btree_gist/btree_text.c | modified | +24 −19 |
| contrib/btree_gist/btree_utils_num.c | modified | +5 −3 |
| contrib/btree_gist/btree_utils_var.c | modified | +71 −84 |
| contrib/btree_gist/btree_utils_var.h | modified | +15 −23 |