Re: BUG #5123: bug in window function "last_value" - Mailing list pgsql-bugs

From David Fetter
Subject Re: BUG #5123: bug in window function "last_value"
Date
Msg-id 20091016211316.GA20699@fetter.org
Whole thread Raw
In response to Re: BUG #5123: bug in window function "last_value"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Fri, Oct 16, 2009 at 01:28:57PM -0400, Tom Lane wrote:
> David Fetter <david@fetter.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@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5121: Segmentation Fault when using pam w/ krb5
Next
From: "Douglas, Ryan"
Date:
Subject: Re: BUG #5121: Segmentation Fault when using pam w/ krb5