mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Use the sortsupport infrastructure in more cases.
This removes some fmgr overhead from cases such as btree index builds. Peter Geoghegan, reviewed by Andreas Karlsson and me.
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
#define SORTSUPPORT_H
|
||||
|
||||
#include "access/attnum.h"
|
||||
#include "utils/relcache.h"
|
||||
|
||||
typedef struct SortSupportData *SortSupport;
|
||||
|
||||
@@ -152,5 +153,7 @@ ApplySortComparator(Datum datum1, bool isNull1,
|
||||
/* Other functions in utils/sort/sortsupport.c */
|
||||
extern void PrepareSortSupportComparisonShim(Oid cmpFunc, SortSupport ssup);
|
||||
extern void PrepareSortSupportFromOrderingOp(Oid orderingOp, SortSupport ssup);
|
||||
extern void PrepareSortSupportFromIndexRel(Relation indexRel, int16 strategy,
|
||||
SortSupport ssup);
|
||||
|
||||
#endif /* SORTSUPPORT_H */
|
||||
|
||||
Reference in New Issue
Block a user