pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: dotbrat@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7804: timeofday() output string is not compatible with "timestamp with time zone" data type
Date: Mon, 14 Jan 2013 13:13:32 -0500
Message-ID: <25029.1358187212@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TucbI-0002j2-5t@wrigleys.postgresql.org>
References: <E1TucbI-0002j2-5t@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

dotbrat@gmail.com writes:
> SET TIME ZONE 'Europe/Minsk';
> select timeofday()::timestamp with time zone;
> ERROR: invalid input syntax for type timestamp with time zone: "Mon Jan 14
> 08:18:20.333915 2013 FET"

The issue seems to be that the recently-invented abbreviation FET
isn't anywhere in our default list of timezone abbreviations.

That probably should be fixed, but in the meantime, you really should be
aware that timeofday() is deprecated, and there's no reason at all to
use it in the above manner anyway.  now() or current_timestamp are
simpler and much faster.

			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 (3+ messages)  latest in thread

Message-ID: <25029.1358187212@sss.pgh.pa.us>
Permalink:  ../25029.1358187212@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25029.1358187212@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, dotbrat@gmail.com
  Subject: Re: BUG #7804: timeofday() output string is not compatible with "timestamp with time zone" data type
  In-Reply-To: <25029.1358187212@sss.pgh.pa.us>
  References: <E1TucbI-0002j2-5t@wrigleys.postgresql.org> <25029.1358187212@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