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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rmcgehee(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13587: Lag Default option does not work with floats and reals
Date: 2015-08-25 21:47:13
Message-ID: 21060.1440539233@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2015-08-25 21:48:09 Re: BUG #13589: content error
Previous Message Alvaro Herrera 2015-08-25 21:43:10 Re: BUG #13589: content error