Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuoXQ-0000Lh-SN for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 18:13:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TuoXQ-0004M6-CN for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 18:13:36 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuoXP-0004LI-6p for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 18:13:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuoXN-0005dY-Id for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 18:13:34 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0EIDWaA025030; Mon, 14 Jan 2013 13:13:32 -0500 (EST) From: Tom Lane 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 In-reply-to: References: Comments: In-reply-to dotbrat@gmail.com message dated "Mon, 14 Jan 2013 05:28:48 +0000" Date: Mon, 14 Jan 2013 13:13:32 -0500 Message-ID: <25029.1358187212@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 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