Re: probable faq: internal format of numerics - Mailing list pgsql-novice

From Tom Lane
Subject Re: probable faq: internal format of numerics
Date
Msg-id 19702.1145979652@sss.pgh.pa.us
Whole thread Raw
In response to probable faq: internal format of numerics  (Brian Hurt <bhurt@janestcapital.com>)
Responses Re: probable faq: internal format of numerics
List pgsql-novice
Brian Hurt <bhurt@janestcapital.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

pgsql-novice by date:

Previous
From: Brian Hurt
Date:
Subject: probable faq: internal format of numerics
Next
From: Brian Hurt
Date:
Subject: Re: probable faq: internal format of numerics