Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfD8e-0007CK-4S for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Aug 2016 21:33:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bfD8d-0003pR-Mv for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Aug 2016 21:33:39 +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 1bfD8c-0003or-Ly for pgsql-bugs@postgresql.org; Wed, 31 Aug 2016 21:33:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bfD8a-0006OS-E8 for pgsql-bugs@postgresql.org; Wed, 31 Aug 2016 21:33:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u7VLXOiF015295; Wed, 31 Aug 2016 17:33:26 -0400 From: Tom Lane To: Andrew Gierth cc: Christoph Berg , pablopumarino@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #14294: Problem in generate series between dates In-reply-to: <87d1ko4t69.fsf@news-spur.riddles.org.uk> 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> <87d1ko4t69.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Wed, 31 Aug 2016 20:48:22 +0100" Date: Wed, 31 Aug 2016 17:33:24 -0400 Message-ID: <15294.1472679204@sss.pgh.pa.us> 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 Andrew Gierth writes: > "Christoph" == Christoph Berg writes: > Christoph> To avoid DST problems, wouldn't a "date"-based > Christoph> generate_series be the safe way to go? > The lack of generate_series(date,date,integer) is sometimes annoying, > even though it can be worked around using the timestamp-without-timezone > variant of generate_series. Or you can do it with "base_date + generate_series(integer...)". I think we looked at this when the timestamp generate_series functions were put in, and were worried about overloading the name so far that common use-cases would get ambiguous-function failures. If that can be shown not to happen, though, it'd be worth adding such a function IMO. 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