Martin Pihlak <martin(dot)pihlak(at)gmail(dot)com> writes:> Now I just realized that the current patch doesn't handle this quite> correctly. Modified patch attached.
Applied with revisions as per discussion.
regards, tom lane