Magnus Hagander <magnus(at)hagander(dot)net> writes:> Here's an updated patch based on this,and the other feedback.
Looks sane in a quick once-over, but I haven't tested it.
regards, tom lane