Re: bigint integers up to 19 digits. - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: bigint integers up to 19 digits.
Date
Msg-id 20100204200929.GG5698@alvh.no-ip.org
Whole thread Raw
In response to Re: bigint integers up to 19 digits.  (Jochen Erwied <jochen@pgsql-performance.erwied.eu>)
List pgsql-performance
Jochen Erwied escribió:

> Maybe using 'numeric(19)' instead of bigint is an alternative. I actually
> don't know how these numbers are stored internally (some kind of BCD, or as
> base-100?), but IMHO they should be faster than strings, although not as
> fast as 'native' types.

base 10000 in the current implementation

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-performance by date:

Previous
From: Jochen Erwied
Date:
Subject: Re: bigint integers up to 19 digits.
Next
From: Robert Haas
Date:
Subject: Re: Slow query: table iteration (8.3)