From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Andrey <andrey(at)ulab(dot)ru>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #5123: bug in window function "last_value" |
Date: | 2009-10-16 21:13:16 |
Message-ID: | 20091016211316.GA20699@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Fri, Oct 16, 2009 at 01:28:57PM -0400, Tom Lane wrote:
> David Fetter <david(at)fetter(dot)org> writes:
> > I think what the OP was expecting was to have the last value be 3
> > instead of changing. This is at least a POLA violation.
>
> [ shrug... ] It's what the spec requires, as far as anybody here
> can tell. As Hitoshi-san already noted, we do point out in our docs
> that last_value is not too useful unless you use a nondefault window
> frame selection. I'm not sure what else we could do.
Perhaps an illustration of the issue and a workaround in the docs?
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | malu | 2009-10-16 22:38:14 | BUG #5124: visualizacion de registros |
Previous Message | Douglas, Ryan | 2009-10-16 20:38:36 | Re: BUG #5121: Segmentation Fault when using pam w/ krb5 |