Skip site navigation (1) Skip section navigation (2)

Numeric 508 datatype

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Numeric 508 datatype
Date: 2005-11-16 17:13:49
Message-ID: 1132161229.4959.12.camel@localhost.localdomain (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-hackerspgsql-patches
Now we're into 8.2devel mode, its time to submit the previously
discussed patch that:

- reduces Numeric storage format by 2 bytes
- limits scale to +/- 508 decimal places

This is sufficient to allow Numeric to continue to be used as the
default numeric representation for all numbers in the parser.

Passes: make check on cvstip, as well as some tests not in there.

Code comments explain the new format and consequences.

As previously agreed, reviewing this is a 2 stage process:
1. review/possibly agree OK to commit
2. check with everybody on GENERAL that the restriction to 508 is

Figure there's no point doing (2) until we agree the proposal/code is

As Atsushi-san point out, there is also come CPU optimization to be done
on Numeric comparison, and also on other areas such as aggregation. I've
not done this yet.

Best Regards, Simon Riggs

Attachment: num508.patch
Description: text/x-patch (21.6 KB)


pgsql-hackers by date

Next:From: Jim C. NasbyDate: 2005-11-16 17:15:07
Subject: Re: OS X 7.4 failure
Previous:From: Tom LaneDate: 2005-11-16 17:12:12
Subject: Re: MERGE vs REPLACE

pgsql-patches by date

Next:From: Philip YarraDate: 2005-11-16 22:26:55
Subject: Re: [PATCHES] pl/pgSQL doco patch
Previous:From: Bruce MomjianDate: 2005-11-16 16:38:14
Subject: Re: drop if exists

pgsql-general by date

Next:From: Tom LaneDate: 2005-11-16 17:20:26
Subject: Re: Rebranding PostgreSQL
Previous:From: Scott MarloweDate: 2005-11-16 17:12:42
Subject: Re: Rebranding PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group