Re: probable faq: internal format of numerics

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brian Hurt <bhurt(at)janestcapital(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: probable faq: internal format of numerics
Date: 2006-04-25 15:40:52
Message-ID: 19702.1145979652@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Brian Hurt <bhurt(at)janestcapital(dot)com> writes:
> This is probably a FAQ, but I've googled the question and haven't found
> an answer. What is the internal format of numerics?

"Use the source, Luke"

http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/numeric.h
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/numeric.c

> I can think of three different ways numerics could be stored
> in PostGreSQL:

It's actually not any of the above, but it's definitely decimal not
binary.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Brian Hurt 2006-04-25 16:05:00 Re: probable faq: internal format of numerics
Previous Message Brian Hurt 2006-04-25 14:58:10 probable faq: internal format of numerics