From: John Naylor Date: Wed, 29 Apr 2026 06:57:07 +0000 (+0700) Subject: Remove unused ByteaSortSupport.abbreviate field X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0302eac784d170497eca3184d246f945b2e3a7f;p=thirdparty%2Fpostgresql.git Remove unused ByteaSortSupport.abbreviate field Oversight in commit 9303d62c6. Author: Aleksander Alekseev Discussion: https://postgr.es/m/CAJ7c6TOsKmmgyA6EwxKVsNeHFHrWXYdgZivgjo_ujf890BpeeA@mail.gmail.com --- diff --git a/src/backend/utils/adt/bytea.c b/src/backend/utils/adt/bytea.c index f6e3266ac32..a1f5d4e572b 100644 --- a/src/backend/utils/adt/bytea.c +++ b/src/backend/utils/adt/bytea.c @@ -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);