pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jochen Erwied <jochen@pgsql-bugs.erwied.eu>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz
Date: Mon, 23 Apr 2012 09:22:42 -0400
Message-ID: <6491.1335187362@sss.pgh.pa.us> (raw)
In-Reply-To: <858616838.20120423072026@erwied.eu>
References: <E1SLUU2-0004nB-1c@wrigleys.postgresql.org>
	<2165.1335030595@sss.pgh.pa.us>
	<858616838.20120423072026@erwied.eu>

Jochen Erwied <jochen@pgsql-bugs.erwied.eu> writes:
> Saturday, April 21, 2012, 7:49:55 PM you wrote:
>> So: some platform-specific misbehavior here.  I have no time to poke at
>> it more now, though.  Who else can reproduce this, on what platforms?

> One machine works, the other not:

I traced though it far enough to find that pg_next_dst_boundary indexes
off the end of an array when the given probe time is exactly the last
DST transition time for the zone.  So what's surprising is not that
it fails weirdly, but that there seem to be numerous machines where
it doesn't (appear to) fail.  The next array slot must chance to have
a sane value in some environments.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <6491.1335187362@sss.pgh.pa.us>
Permalink:  ../6491.1335187362@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6491.1335187362@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, jochen@pgsql-bugs.erwied.eu
  Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz
  In-Reply-To: <6491.1335187362@sss.pgh.pa.us>
  References: <E1SLUU2-0004nB-1c@wrigleys.postgresql.org> <2165.1335030595@sss.pgh.pa.us> <858616838.20120423072026@erwied.eu> <6491.1335187362@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