"Jolly Chen" <jolly@gauntletsystems.com> writes:
> testdb=# select sum as s from v1;
> sum
> -----
> 3
> (1 row)
Good catch. 8.0 and earlier get this right, so it's a regression we
induced somewhere in 8.1 development ... wonder where?
regards, tom lane