diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-11-06 12:10:42 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-11-06 12:14:35 -0500 |
commit | a76ef15d9fc9207a0758e8d6f6700dc8c931a934 (patch) | |
tree | 857e40da63c94ece9d32f7d71bcda01776b87187 /src/backend/executor/tqueue.c | |
parent | 5644419b3de418f81e4461cbaa06c5d4b5da0800 (diff) | |
download | postgresql-a76ef15d9fc9207a0758e8d6f6700dc8c931a934.tar.gz postgresql-a76ef15d9fc9207a0758e8d6f6700dc8c931a934.zip |
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
Diffstat (limited to 'src/backend/executor/tqueue.c')
0 files changed, 0 insertions, 0 deletions