Robert,
> It probably has to do with the CASE stakind stuff in the definition of
> the pg_stats view. Try \d+ pg_stats to see what I mean.
Ok, if this is not a known bug, I'll see if I can work up a fix. No
promises, given the hairyness ...
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com