Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UePnO-0004yu-2k for pgsql-bugs@arkaria.postgresql.org; Mon, 20 May 2013 13:06:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UePnN-0007dH-ED for pgsql-bugs@arkaria.postgresql.org; Mon, 20 May 2013 13:06:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UePnL-0007cw-KB for pgsql-bugs@postgresql.org; Mon, 20 May 2013 13:06:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UePn9-0003nQ-SX for pgsql-bugs@postgresql.org; Mon, 20 May 2013 13:06:31 +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 r4KD6I8A003194; Mon, 20 May 2013 09:06:18 -0400 (EDT) From: Tom Lane To: chris.travers@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8170: alter user does not accept timestamp output format in certain datestyles and timezones. In-reply-to: References: Comments: In-reply-to chris.travers@gmail.com message dated "Mon, 20 May 2013 04:51:41 -0000" Date: Mon, 20 May 2013 09:06:18 -0400 Message-ID: <3193.1369055178@sss.pgh.pa.us> X-Pg-Spam-Score: -3.0 (---) 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 chris.travers@gmail.com writes: > db=# show timezone; > TimeZone > -------------- > Asia/Jakarta > (1 row) > db=# select now(); > now > ------------------------------------- > Mon 20 May 11:39:24.273508 2013 WIT > (1 row) > db=# ALTER USER chris with valid until 'Tue 21 May 11:41:14.58554 2013 WIT'; > ERROR: invalid input syntax for type timestamp with time zone: "Tue 21 May > 11:41:14.58554 2013 WIT" > This worked before with different timezones with the same datestyle. Why is > this failing? You need to add WIT to the timezone abbreviation list to allow it to be used as input: http://www.postgresql.org/docs/9.2/static/datetime-config-files.html Or perhaps better, use the ISO datestyle to eliminate the whole issue of timezone abbreviations. 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