Re: bigint integers up to 19 digits.

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jochen Erwied <jochen(at)pgsql-performance(dot)erwied(dot)eu>
Cc: Tory M Blue <tmblue(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: bigint integers up to 19 digits.
Date: 2010-02-04 20:09:29
Message-ID: 20100204200929.GG5698@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Haas 2010-02-04 21:57:21 Re: Slow query: table iteration (8.3)
Previous Message Jochen Erwied 2010-02-04 19:01:19 Re: bigint integers up to 19 digits.