Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZoC7L-0002zO-To for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Oct 2015 15:12:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZoC7L-0008Ne-1M for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Oct 2015 15:12:55 +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) (envelope-from ) id 1ZoC7K-0008N6-6n for pgsql-bugs@postgresql.org; Mon, 19 Oct 2015 15:12:54 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZoC7G-000701-Fa for pgsql-bugs@postgresql.org; Mon, 19 Oct 2015 15:12:53 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1ZoC7E-0002iP-DX; Mon, 19 Oct 2015 11:12:48 -0400 Date: Mon, 19 Oct 2015 11:12:48 -0400 From: Bruce Momjian To: "David G. Johnston" Cc: stepanperlov@gmail.com, "pgsql-bugs@postgresql.org" Subject: Re: BUG #13687: bug in row_to_json function with '-infinity' timestamp Message-ID: <20151019151248.GC24392@momjian.us> References: <20151019130052.3019.36176@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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 On Mon, Oct 19, 2015 at 10:25:53AM -0400, David G. Johnston wrote: > On Mon, Oct 19, 2015 at 9:00 AM, wrote: > > The following bug has been logged on the website: > > Bug reference:      13687 > Logged by:          Stepan > Email address:      stepanperlov@gmail.com > PostgreSQL version: 9.4.5 > Operating system:   Ubuntu 14.04.1 LTS > Description: > > SELECT row_to_json(t) >   FROM (SELECT '-infinity'::timestamptz) t > > > ​What do you see happening and what do you think should happen (and why)? Well, the output I see is: SELECT row_to_json(t) FROM (SELECT '-infinity'::timestamptz) t ; row_to_json ---------------------------- {"timestamptz":"infinity"} I assume the user expects positive infinity. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Roman grave inscription + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs