Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUxly-0007iq-8Y for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Jan 2017 15:40:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cUxlx-0003TR-5z for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Jan 2017 15:40:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cUxlv-0003Sh-9m for pgsql-hackers@postgresql.org; Sat, 21 Jan 2017 15:40:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cUxln-0006lz-PI for pgsql-hackers@postgresql.org; Sat, 21 Jan 2017 15:40:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v0LFdum5026340; Sat, 21 Jan 2017 10:39:56 -0500 From: Tom Lane To: Pavan Deolasee cc: Alvaro Herrera , pgsql-hackers Subject: Re: Failure in commit_ts tap tests In-reply-to: References: <20170120182702.tjjk2mh3t5keansh@alvherre.pgsql> <21212.1484939708@sss.pgh.pa.us> Comments: In-reply-to Pavan Deolasee message dated "Sat, 21 Jan 2017 11:10:48 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26338.1485013196.1@sss.pgh.pa.us> Date: Sat, 21 Jan 2017 10:39:56 -0500 Message-ID: <26339.1485013196@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Pavan Deolasee writes: > I think I understand why it's only affecting me and not others. > I've PGDATESTYLE set to "Postgres, MDY" in my bashrc and that formats the > commit timestamp as "Fri Jan 20 07:59:52.322811 2017 PST". If I unset that, > the result comes in a format such as "2017-01-20 21:31:47.766371-08". > Looks like perl doesn't throw an error if it can parse the leading part of > the string as a numeric. It still throws a warning, but the test passes. Hm, but what of the "null" value? Also, I get $ perl -e 'use warnings; use Test::More; ok("2017-01-01" != "null", "ok");' Argument "null" isn't numeric in numeric ne (!=) at -e line 1. Argument "2017-01-01" isn't numeric in numeric ne (!=) at -e line 1. ok 1 - ok # Tests were run but no plan was declared and done_testing() was not seen. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers