I wrote:
> Dennis Noordsij <dennis(dot)noordsij(at)movial(dot)fi> writes:
>> What happens is [ integer overflow ]
> Doh ... so the increase in the maximum histogram size *is* related.
> Thanks, will fix.
Patch is here if you need it right away:
http://archives.postgresql.org/message-id/20090505180211.B2A59754069@cvs.postgresql.org
regards, tom lane