Re: Decimal vs. Bigint memory usage - Mailing list pgsql-general

From Craig Ringer
Subject Re: Decimal vs. Bigint memory usage
Date
Msg-id 4E855B07.2090300@ringerc.id.au
Whole thread Raw
In response to Re: Decimal vs. Bigint memory usage  (Marti Raudsepp <marti@juffo.org>)
List pgsql-general
On 29/09/2011 9:13 PM, Marti Raudsepp wrote:


>> How does decimal store the number internally,

Numeric is stored as binary-coded decimal. This isn't fast.

I'd say using a bigint is a no-brainer unless you think there's a chance
you might exceed the maximum size for a 64-bit integer.

--
Craig Ringer

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Deadlock of REINDEX and SELECT queries in PostgresSQL 7.4
Next
From: Venkat Balaji
Date:
Subject: Re: could not access file "$libdir/pg_buffercache": No such file or directory