Re: BUG #13587: Lag Default option does not work with floats and reals

From: Robert McGehee <rmcgehee(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13587: Lag Default option does not work with floats and reals
Date: 2015-08-26 00:39:31
Message-ID: CAOpVXKr7WMWSqY6eQtx1=O9z05E+hRXYg5ssahbk-hkEBBYrSQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Ahh, thanks for this!
On Tue, Aug 25, 2015 at 5:47 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> rmcgehee(at)gmail(dot)com writes:
> > The lag() window function is documented to accept a default argument.
> > However, if lag is applied to either a float or a real (and possibly
> other
> > types as well), adding a default gives an error.
>
> The default argument has to be the same type as the value argument;
> in your failing example, it is not. Perhaps the documentation could be
> more explicit about that.
>
> regards, tom lane
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2015-08-26 00:39:42 Re: BUG #13586: Repository/Distribution issues
Previous Message Andres Freund 2015-08-25 22:45:45 Re: BUG #13589: content error