Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> Updated patch attached. I still think this is a bizarre API.
Well, if we had it to do over I'm sure we'd have done it differently,
but the functions are there now and we aren't going to change them ...
regards, tom lane