Re: SUM()ming a view's column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Ploski <jpljpl(at)gmx(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SUM()ming a view's column
Date: 2001-04-25 16:52:15
Message-ID: 29527.988217535@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jan Ploski <jpljpl(at)gmx(dot)de> writes:
> Here, v_wutest is a view which returns two rows. Shouldn't the SUM
> aggregate simply add these two values? To me, it looks like a bug.

Does the view contain GROUP BY? If so, yes this is broken in pre-7.1
releases ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2001-04-25 17:02:44 Re: Joined table view - multiple delete action rule
Previous Message Tom Lane 2001-04-25 16:50:48 Re: Newbie struggling to set $PGDATA