mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Per-column collation support
This adds collation support for columns and domains, a COLLATE clause to override it per expression, and B-tree index support. Peter Eisentraut reviewed by Pavel Stehule, Itagaki Takahiro, Robert Haas, Noah Misch
This commit is contained in:
@@ -74,6 +74,7 @@ typedef struct VariableStatData
|
||||
Oid vartype; /* exposed type of expression */
|
||||
Oid atttype; /* type to pass to get_attstatsslot */
|
||||
int32 atttypmod; /* typmod to pass to get_attstatsslot */
|
||||
Oid attcollation; /* collation of the variable */
|
||||
bool isunique; /* true if matched to a unique index */
|
||||
} VariableStatData;
|
||||
|
||||
@@ -178,7 +179,7 @@ extern Selectivity rowcomparesel(PlannerInfo *root,
|
||||
int varRelid, JoinType jointype, SpecialJoinInfo *sjinfo);
|
||||
|
||||
extern void mergejoinscansel(PlannerInfo *root, Node *clause,
|
||||
Oid opfamily, int strategy, bool nulls_first,
|
||||
Oid opfamily, Oid collation, int strategy, bool nulls_first,
|
||||
Selectivity *leftstart, Selectivity *leftend,
|
||||
Selectivity *rightstart, Selectivity *rightend);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user