From: Tom Lane <tgl@sss.pgh.pa.us>
To: rmcgehee@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13587: Lag Default option does not work with floats and reals
Date: Tue, 25 Aug 2015 17:47:13 -0400
Message-ID: <21060.1440539233@sss.pgh.pa.us> (raw)
In-Reply-To: <20150825182638.2091.20578@wrigleys.postgresql.org>
References: <20150825182638.2091.20578@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, rmcgehee@gmail.com
Subject: Re: BUG #13587: Lag Default option does not work with floats and reals
In-Reply-To: <21060.1440539233@sss.pgh.pa.us>
References: <20150825182638.2091.20578@wrigleys.postgresql.org> <21060.1440539233@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox