pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: stepanperlov@gmail.com, "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13687: bug in row_to_json function with '-infinity' timestamp
Date: Mon, 19 Oct 2015 11:12:48 -0400
Message-ID: <20151019151248.GC24392@momjian.us> (raw)
In-Reply-To: <CAKFQuwaiJs9BZ34uUahqn0Y4GR8XeWivWQ8JixN6KiU7i3dtpg@mail.gmail.com>
References: <20151019130052.3019.36176@wrigleys.postgresql.org>
	<CAKFQuwaiJs9BZ34uUahqn0Y4GR8XeWivWQ8JixN6KiU7i3dtpg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Mon, Oct 19, 2015 at 10:25:53AM -0400, David G. Johnston wrote:
> On Mon, Oct 19, 2015 at 9:00 AM, <stepanperlov@gmail.com> 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  <bruce@momjian.us>        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



view thread (12+ messages)  latest in thread

Message-ID: <20151019151248.GC24392@momjian.us>
Permalink:  ../20151019151248.GC24392@momjian.us/
Also on:    postgresql.org/message-id/20151019151248.GC24392@momjian.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: bruce@momjian.us, david.g.johnston@gmail.com
  Subject: Re: BUG #13687: bug in row_to_json function with '-infinity' timestamp
  In-Reply-To: <20151019151248.GC24392@momjian.us>
  References: <20151019130052.3019.36176@wrigleys.postgresql.org> <CAKFQuwaiJs9BZ34uUahqn0Y4GR8XeWivWQ8JixN6KiU7i3dtpg@mail.gmail.com> <20151019151248.GC24392@momjian.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