Re: BUG #5123: bug in window function "last_value"

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Andrey <andrey(at)ulab(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5123: bug in window function "last_value"
Date: 2009-10-16 13:45:55
Message-ID: 4AD87913.9010609@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Andrey wrote:
> select id, first_value(id) over(order by id), last_value(id) over(order by
> id) from t;
>
> RESULT:
> id | first_value | last_value
> ----+-------------+------------
> 1 | 1 | 1
> 2 | 1 | 2
> 3 | 1 | 3
> (3 rows)
>
> fist_value - good, last_value - bad

Looks ok to me. What did you expect?

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thom Brown 2009-10-16 13:48:11 Re: vacuumdb error
Previous Message Robert Haas 2009-10-16 13:32:20 Re: vacuumdb error