Re: BUG #13587: Lag Default option does not work with floats and reals - Mailing list pgsql-bugs

From Robert McGehee
Subject Re: BUG #13587: Lag Default option does not work with floats and reals
Date
Msg-id CAOpVXKr7WMWSqY6eQtx1=O9z05E+hRXYg5ssahbk-hkEBBYrSQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #13587: Lag Default option does not work with floats and reals  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Ahh, thanks for this!
On Tue, Aug 25, 2015 at 5:47 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

> rmcgehee@gmail.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
>

pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #13589: content error
Next
From: x1160@126.com
Date:
Subject: BUG #13590: can't find Locale 'Chinese[Simplified],China'