Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group