Josh Berkus <josh@agliodbs.com> writes:
>> Uh, yeah, but we did in 7.2 and 7.3 as well... count() hasn't been
>> int4 since 7.1...
> Hmmm ... can't be 7.2. The query is taken from a production database written
> for 7.2; I'd have noticed the BIGINT problem before now. Either that, or in
> 7.2 we were doing implicit conversion from BIGINT to INT for function calls?
That could be --- I don't recall exactly when we decided implicit
bigint->int conversion was a bad idea ...
regards, tom lane