Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> The following bug fix has not yet been applied to CVS
> http://archives.postgresql.org/pgsql-patches/2007-06/msg00100.php
Frankly, this looks much more like it creates a bug than fixes one.
I have not looked at all of the original thread, but this adds a wart
(two warts, really) that seems certain to do the wrong thing in cases
other than the one you are thinking of.
regards, tom lane