Hi,
> This is a follow-up to b45242fd30ff [1]. Previously we separated
> varlena.c into varlena.c and bytea.c. This patch makes
> bytea_sortsupport() independent from varlena.c code as it was proposed
> before [2][3]. The benefits of this change are summarized in the
> commit message that I included to the patch.
>
> As always, your feedback is most appreciated.
cfbot indicates that v1 needs a rebase. Here is v2.