pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Henk Enting <h.d.enting@mgrid.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6231: weird to_timestamp behaviour with out of range values
Date: Sat, 1 Oct 2011 20:00:23 -0400
Message-ID: <20111002000023.GC12765@tamriel.snowman.net> (raw)
In-Reply-To: <CAAGvj=Dk0saKZtsaa3sjbk-u_w-ocOYpEUzZhFPW3bpVZAyHfg@mail.gmail.com>
References: <201109281455.p8SEtveU095497@wwwmaster.postgresql.org>
	<3605.1317224606@sss.pgh.pa.us>
	<CA+TgmoZymKzNU9Mxn1Abi=mojUKF_KD3B+_ecSVq39QYxDdXyg@mail.gmail.com>
	<CAAGvj=Dk0saKZtsaa3sjbk-u_w-ocOYpEUzZhFPW3bpVZAyHfg@mail.gmail.com>

* Henk Enting (h.d.enting@mgrid.net) wrote:
> But still, I think the to_timestamp should throw an error if I put in
> something like '21-21-2011'.

I agree completely, this is a pretty big bug in my opinion.  We don't
accept invalid or garbage timestamps in the input function, I don't see
any reason why we should be allowing it in to_timestamp().  If the
values at the 'MM' location are outside of the valid range, we should be
throwing an error.

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 197B) download

view thread (5+ messages)

Message-ID: <20111002000023.GC12765@tamriel.snowman.net>
Permalink:  ../20111002000023.GC12765@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20111002000023.GC12765@tamriel.snowman.net

 · 

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: sfrost@snowman.net, h.d.enting@mgrid.net, robertmhaas@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #6231: weird to_timestamp behaviour with out of range values
  In-Reply-To: <20111002000023.GC12765@tamriel.snowman.net>
  References: <201109281455.p8SEtveU095497@wwwmaster.postgresql.org> <3605.1317224606@sss.pgh.pa.us> <CA+TgmoZymKzNU9Mxn1Abi=mojUKF_KD3B+_ecSVq39QYxDdXyg@mail.gmail.com> <CAAGvj=Dk0saKZtsaa3sjbk-u_w-ocOYpEUzZhFPW3bpVZAyHfg@mail.gmail.com> <20111002000023.GC12765@tamriel.snowman.net>

* 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