Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>>! *prefix_const = string_to_bytea_const(match, match_pos);
>>! *rest_const = string_to_bytea_const(rest, pattlen - match_pos);
>
> I think that should be pattlen - pos not pattlen - match_pos, no?
>
Yup -- you're right. Thanks for the review! Fixed and committed.
Joe