Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXgx2-0005hS-47 for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Apr 2014 01:05:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WXgx0-0002ER-DW for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Apr 2014 01:05:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXgwz-0002Dq-C1 for pgsql-bugs@postgresql.org; Wed, 09 Apr 2014 01:05:13 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXgww-0001Cu-Eu for pgsql-bugs@postgresql.org; Wed, 09 Apr 2014 01:05:12 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1WXgwv-0007yI-Nb; Tue, 08 Apr 2014 21:05:09 -0400 Date: Tue, 8 Apr 2014 21:05:09 -0400 From: Bruce Momjian To: nuko.yokohama@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9843: interval data type storage size (8.1 later) Message-ID: <20140409010509.GF8685@momjian.us> References: <20140403084628.309.87073@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140403084628.309.87073@wrigleys.postgresql.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.2 (--) 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 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 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 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