pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Christoph Berg <myon@debian.org>
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:33:24 -0400
Message-ID: <15294.1472679204@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> "Christoph" == Christoph Berg <myon@debian.org> 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



view thread (17+ messages)  latest in thread

Message-ID: <15294.1472679204@sss.pgh.pa.us>
Permalink:  ../15294.1472679204@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15294.1472679204@sss.pgh.pa.us

 · 

reply

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, andrew@tao11.riddles.org.uk, myon@debian.org, pablopumarino@gmail.com
  Subject: Re: BUG #14294: Problem in generate series between dates
  In-Reply-To: <15294.1472679204@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> <20160831153737.xubrne5yzfedscym@msg.df7cb.de> <87d1ko4t69.fsf@news-spur.riddles.org.uk> <15294.1472679204@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