]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove unused ByteaSortSupport.abbreviate field
authorJohn Naylor <john.naylor@postgresql.org>
Wed, 29 Apr 2026 06:57:07 +0000 (13:57 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Wed, 29 Apr 2026 06:57:07 +0000 (13:57 +0700)
Oversight in commit 9303d62c6.

Author: Aleksander Alekseev <aleksander@tigerdata.com>
Discussion: https://postgr.es/m/CAJ7c6TOsKmmgyA6EwxKVsNeHFHrWXYdgZivgjo_ujf890BpeeA@mail.gmail.com

src/backend/utils/adt/bytea.c

index f6e3266ac3247cf585cb1d910cbe68bcb3b423fb..a1f5d4e572ba27bc9be99c8046727a90c174349d 100644 (file)
@@ -41,7 +41,6 @@ static bytea *bytea_overlay(bytea *t1, bytea *t2, int sp, int sl);
 
 typedef struct
 {
-       bool            abbreviate;             /* Should we abbreviate keys? */
        hyperLogLogState abbr_card; /* Abbreviated key cardinality state */
        hyperLogLogState full_card; /* Full key cardinality state */
        double          prop_card;              /* Required cardinality proportion */
@@ -1229,7 +1228,6 @@ bytea_sortsupport(PG_FUNCTION_ARGS)
                ByteaSortSupport *bss;
 
                bss = palloc_object(ByteaSortSupport);
-               bss->abbreviate = true;
                bss->prop_card = 0.20;
                initHyperLogLog(&bss->abbr_card, 10);
                initHyperLogLog(&bss->full_card, 10);