pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: dfm@ringing.org
Cc: pgsql-docs@postgresql.org
Subject: Re: Better example
Date: Mon, 20 Mar 2017 22:22:23 -0400
Message-ID: <20170321022223.GB2045@momjian.us> (raw)
In-Reply-To: <20161123175941.GA8036@momjian.us>
References: <20161108180158.27607.28000@wrigleys.postgresql.org>
	<20161123175941.GA8036@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

On Wed, Nov 23, 2016 at 12:59:41PM -0500, Bruce Momjian wrote:
> On Tue, Nov  8, 2016 at 06:01:58PM +0000, dfm@ringing.org wrote:
> > The following documentation comment has been logged on the website:
> > 
> > Page: https://www.postgresql.org/docs/9.5/static/datatype-numeric.html
> > Description:
> > 
> > I think that in the section on floating point Infinity/-Infinity/NaN in the
> > Data Types chapter the example would be better setting it to -Infinity
> > rather than positive, as that would make clear that the minus sign needs to
> > be within the quote marks. This isn&#39;t clear otherwise.
> 
> Is the attached patch what you are suggesting?

Patch applied.

---------------------------------------------------------------------------


> 
> -- 
>   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. +
> +                      Ancient Roman grave inscription +

> diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml
> new file mode 100644
> index 67d0c34..fbc3576
> *** a/doc/src/sgml/datatype.sgml
> --- b/doc/src/sgml/datatype.sgml
> *************** FROM generate_series(-3.5, 3.5, 1) as x;
> *** 750,756 ****
>        floating-point arithmetic does not follow IEEE 754, these values
>        will probably not work as expected.)  When writing these values
>        as constants in an SQL command, you must put quotes around them,
> !      for example <literal>UPDATE table SET x = 'Infinity'</>.  On input,
>        these strings are recognized in a case-insensitive manner.
>       </para>
>   
> --- 750,756 ----
>        floating-point arithmetic does not follow IEEE 754, these values
>        will probably not work as expected.)  When writing these values
>        as constants in an SQL command, you must put quotes around them,
> !      for example <literal>UPDATE table SET x = '-Infinity'</>.  On input,
>        these strings are recognized in a case-insensitive manner.
>       </para>
>   

> 
> -- 
> Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-docs


-- 
  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. +
+                      Ancient Roman grave inscription +


-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (5+ messages)  latest in thread

Message-ID: <20170321022223.GB2045@momjian.us>
Permalink:  ../20170321022223.GB2045@momjian.us/
Also on:    postgresql.org/message-id/20170321022223.GB2045@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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us, dfm@ringing.org
  Subject: Re: Better example
  In-Reply-To: <20170321022223.GB2045@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