Rafi Shamim <rafiss(at)gmail(dot)com> writes:
> I forgot to include this in my original bug report, but the bytea substring
> function (which has a separate implementation in varlena.c) is also
> affected.
Um. And I bet the "bit" variant as well ...
regards, tom lane