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

From Tom Lane
Subject Re: BUG #13587: Lag Default option does not work with floats and reals
Date
Msg-id 21060.1440539233@sss.pgh.pa.us
Whole thread Raw
In response to BUG #13587: Lag Default option does not work with floats and reals  (rmcgehee@gmail.com)
Responses Re: BUG #13587: Lag Default option does not work with floats and reals
List pgsql-bugs
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: Alvaro Herrera
Date:
Subject: Re: BUG #13589: content error
Next
From: John R Pierce
Date:
Subject: Re: BUG #13589: content error