From: Bruce Momjian <bruce@momjian.us>
To: nuko.yokohama@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9843: interval data type storage size (8.1 later)
Date: Tue, 8 Apr 2014 21:05:09 -0400
Message-ID: <20140409010509.GF8685@momjian.us> (raw)
In-Reply-To: <20140403084628.309.87073@wrigleys.postgresql.org>
References: <20140403084628.309.87073@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Thu, Apr 3, 2014 at 08:46:28AM +0000, nuko.yokohama@gmail.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 9843
> Logged by: nuko yokohama
> Email address: nuko.yokohama@gmail.com
> PostgreSQL version: 9.3.4
> Operating system: CentOS 6.3
> Description:
>
> Hi.
>
> PostgreSQL 9.3 document in "Table 8-9" of "8.5. Date / Time Types", storage
> size of the interval data type has 12 bytes.
> However, the definition of "datatype / timestamp.h", size of the interval
> data type was 16 bytes.
> In addition, interval data type was 16 bytes even dump the results of the
> table file.
This will be fixed in 9.4 with this patch:
commit 146604ec43bcd6f977c31775a91022cf9737daf5
Author: Bruce Momjian <bruce@momjian.us>
Date: Thu Jan 30 09:41:43 2014 -0500
Add checks for interval overflow/underflow
New checks include input, month/day/time internal adjustments, addition,
subtraction, multiplication, and negation. Also adjust docs to
correctly specify interval size in bytes.
Report from Rok Kralj
I am not sure why this was not fixed earlier.
> "day" field to the interval data type is added in PostgreSQL 8.1, but do not
> not been reflected in the document PostgreSQL at that time?
Uh, can you show me a sentence where it is missing? I don't see it.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, nuko.yokohama@gmail.com
Subject: Re: BUG #9843: interval data type storage size (8.1 later)
In-Reply-To: <20140409010509.GF8685@momjian.us>
References: <20140403084628.309.87073@wrigleys.postgresql.org> <20140409010509.GF8685@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