From: Christoph Berg <myon@debian.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: pablopumarino@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14294: Problem in generate series between dates
Date: Wed, 31 Aug 2016 17:37:37 +0200
Message-ID: <20160831153737.xubrne5yzfedscym@msg.df7cb.de> (raw)
In-Reply-To: <31168.1472069440@sss.pgh.pa.us>
References: <20160824182920.15681.52285@wrigleys.postgresql.org>
<28256.1472064660@sss.pgh.pa.us>
<87oa4i9d8w.fsf@news-spur.riddles.org.uk>
<31168.1472069440@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Re: Tom Lane 2016-08-24 <31168.1472069440@sss.pgh.pa.us>
> In other words, we could make this scenario "work" if we defined
> generate_series as base plus N times the increment, rather than as
> repeated addition of the increment. But I wouldn't be surprised
> if that would break other corner cases (and it would certainly
> be slower). Daylight-savings time is not one of the more consistent
> things in our world ... not that anything at all about the civil
> calendar is mathematically nice :-(.
To avoid DST problems, wouldn't a "date"-based generate_series be the
safe way to go?
Christoph
--
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: myon@debian.org, tgl@sss.pgh.pa.us, andrew@tao11.riddles.org.uk, pablopumarino@gmail.com
Subject: Re: BUG #14294: Problem in generate series between dates
In-Reply-To: <20160831153737.xubrne5yzfedscym@msg.df7cb.de>
References: <20160824182920.15681.52285@wrigleys.postgresql.org> <28256.1472064660@sss.pgh.pa.us> <87oa4i9d8w.fsf@news-spur.riddles.org.uk> <31168.1472069440@sss.pgh.pa.us> <20160831153737.xubrne5yzfedscym@msg.df7cb.de>
* 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