Apply my original fix for Taiki Yamaguchi's bug report about DISTINCT MAX().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f82277c80de04a340b77daf930643af54b81400c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-03-31T16:59:33Z
Releases: 8.3.2
Apply my original fix for Taiki Yamaguchi's bug report about DISTINCT MAX().
Add some regression tests for plausible failures in this area.

Files