pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: kjs@teews.com
Subject: documentation describing the range of a number type 'integer' is incorrect
Date: Thu, 29 Jul 2021 22:27:39 +0000
Message-ID: <162759765986.25752.13395472408540963267@wrigleys.postgresql.org> (raw)

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/datatype-numeric.html
Description:

https://www.postgresql.org/docs/13/datatype-numeric.html says that the range
of a numeric type integer is -2147483648 to +2147483647 but
PGTYPESnumeric_to_int considers -2147483648 (a perfectly valid 32-bit
integer) to be invalid because it compares to -INT_MAX instead of INT_MIN or
(-INT_MAX - 1). This goes back to the initial commit in the git repo for
src/interfaces/ecpg/pgtypeslib/numeric.c. And doc/src/sgml/ecpg.sgml
documents the min being -INT_MAX.


view thread (5+ messages)  latest in thread

Message-ID: <162759765986.25752.13395472408540963267@wrigleys.postgresql.org>
Permalink:  ../162759765986.25752.13395472408540963267@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/162759765986.25752.13395472408540963267@wrigleys.postgresql.org

 · 

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: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, kjs@teews.com
  Subject: Re: documentation describing the range of a number type 'integer' is incorrect
  In-Reply-To: <162759765986.25752.13395472408540963267@wrigleys.postgresql.org>

* 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