Simplify SortSupport for the macaddr data type

As of commit 6aebedc38 Datums are 64-bit values. Since MAC addresses
have only 6 bytes, the abbreviated key always contains the entire
MAC address and is thus authoritative (for practical purposes -- the
tuple sort machinery has no way of knowing that). Abbreviating this
datatype is cheap, and aborting abbreviation prevents optimizations
like radix sort, so remove cardinality estimation.

Author: Aleksander Alekseev <[email protected]>
Reviewed-by: Andrey Borodin <[email protected]>
Reviewed-by: Michael Paquier <[email protected]>
Suggested-by: John Naylor <[email protected]>
Discussion: 
https://postgr.es/m/caj7c6tmk10rf_limz6j9rry1rqk-5s+wbpubeflix4cy+-4...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/30229be755e703cf23fd73e95c5a515f9011cb5a

Modified Files
--------------
src/backend/utils/adt/mac.c | 101 +++-----------------------------------------
1 file changed, 6 insertions(+), 95 deletions(-)

Reply via email to