From: | Michael Glaesemann <grzm(at)seespotcode(dot)net> |
---|---|
To: | Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net> |
Cc: | ML PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Fixed-point scalars? |
Date: | 2006-10-18 03:14:00 |
Message-ID: | 9F5EB427-DCCF-4C52-9E65-E44882CEA979@seespotcode.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Oct 18, 2006, at 9:46 AM, Ron Johnson wrote:
> SMALLINT(2)
> INTEGER(2)
> BIGINT(2)
> Are these data-types not in PG, or am I missing something?
http://www.postgresql.org/docs/current/interactive/
datatype.html#DATATYPE-NUMERIC
The docs list 2 byte, 4 byte, and 8 byte integer types.
> Also, how do you calculate the size of a NUMERIC?
>
> Lastly, I know they are the same, but which is the
> "preferred/standard" type: NUMERIC or DECIMAL?
Later on, same page:
http://www.postgresql.org/docs/current/interactive/
datatype.html#DATATYPE-NUMERIC-DECIMAL
> The actual storage requirement is two bytes for each group of four
> decimal digits, plus eight bytes overhead.
<snip />
> The types decimal and numeric are equivalent. Both types are part
> of the SQL standard.
The PostgreSQL are quite extensive and helpful.
Michael Glaesemann
grzm seespotcode net
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2006-10-18 03:20:17 | Re: Maximum size of database |
Previous Message | binberati | 2006-10-18 02:34:10 | FastCgi / PostgreSQL: FATAL: Ident authentication failed for user "user_name" |