Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bf7aq-0004oW-8d for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Aug 2016 15:38:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bf7ap-0003tH-OL for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Aug 2016 15:38:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bf7aC-0003Ap-5a for pgsql-bugs@postgresql.org; Wed, 31 Aug 2016 15:37:44 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bf7a9-0008I1-80 for pgsql-bugs@postgresql.org; Wed, 31 Aug 2016 15:37:42 +0000 Received: from msg.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3sPTzQ36rsz3F0Z; Wed, 31 Aug 2016 17:37:38 +0200 (CEST) Date: Wed, 31 Aug 2016 17:37:37 +0200 From: Christoph Berg To: Tom Lane Cc: Andrew Gierth , pablopumarino@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #14294: Problem in generate series between dates Message-ID: <20160831153737.xubrne5yzfedscym@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Tom Lane , Andrew Gierth , pablopumarino@gmail.com, pgsql-bugs@postgresql.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31168.1472069440@sss.pgh.pa.us> User-Agent: Mutt/1.6.2-neo (2016-07-23) X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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