mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Add sort support routine for the UUID data type.
This introduces a simple encoding scheme to produce abbreviated keys: pack as many bytes of each UUID as will fit into a Datum. On little-endian machines, a byteswap is also performed; the abbreviated comparator can therefore just consist of a simple 3-way unsigned integer comparison. The purpose of this change is to speed up sorting data on a column of type UUID. Peter Geoghegan
This commit is contained in:
@@ -1174,6 +1174,7 @@ extern Datum uuid_ge(PG_FUNCTION_ARGS);
|
||||
extern Datum uuid_gt(PG_FUNCTION_ARGS);
|
||||
extern Datum uuid_ne(PG_FUNCTION_ARGS);
|
||||
extern Datum uuid_cmp(PG_FUNCTION_ARGS);
|
||||
extern Datum uuid_sortsupport(PG_FUNCTION_ARGS);
|
||||
extern Datum uuid_hash(PG_FUNCTION_ARGS);
|
||||
|
||||
/* windowfuncs.c */
|
||||
|
||||
Reference in New Issue
Block a user