Andrew Dunstan <andrew(at)dunslane(dot)net> writes:> Here's a patch (minus catalog bump) which I think does that.
Looks sane in a very quick once-over, but I didn't test it.
regards, tom lane