Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
> FWIW, I can reproduce this with UTF-8, on REL_8_2_STABLE.
I can reproduce an out-of-memory condition (basically, replace() is
going into an infinite loop because of the invalid input) but I'm
not seeing any crash.
regards, tom lane