Stephen Frost <sfrost(at)snowman(dot)net> writes:
> I'm not really happy with the naming, comments, or some of the code
> flow, but I think the concept looks reasonable.
There seems to be a lot of unnecessary palloc/pfree traffic in this
implementation. Getting rid of that might help the speed.
regards, tom lane