mirror of
https://github.com/postgres/postgres.git
synced 2025-12-15 02:22:24 +03:00
Don't require sort support functions to provide a comparator.
This could be useful for datatypes like text, where we might want to optimize for some collations but not others. However, this patch doesn't introduce any new sortsupport functions that work this way; it merely revises the code so that future patches may do so. Patch by me. Review by Peter Geoghegan.
This commit is contained in:
@@ -50,8 +50,6 @@ extern Oid get_opfamily_member(Oid opfamily, Oid lefttype, Oid righttype,
|
||||
int16 strategy);
|
||||
extern bool get_ordering_op_properties(Oid opno,
|
||||
Oid *opfamily, Oid *opcintype, int16 *strategy);
|
||||
extern bool get_sort_function_for_ordering_op(Oid opno, Oid *sortfunc,
|
||||
bool *issupport, bool *reverse);
|
||||
extern Oid get_equality_op_for_ordering_op(Oid opno, bool *reverse);
|
||||
extern Oid get_ordering_op_for_equality_op(Oid opno, bool use_lhs_type);
|
||||
extern List *get_mergejoin_opfamilies(Oid opno);
|
||||
|
||||
Reference in New Issue
Block a user