pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedDecimal vs.Numeric vs. Int & type for OID
2+ messages / 2 participants
[nested] [flat]
* Decimal vs.Numeric vs. Int & type for OID
@ 2000-12-12 14:20 Nikhil G. Daddikar <ngd@iname.com>
2000-12-13 20:25 ` Re: Decimal vs.Numeric vs. Int & type for OID Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 2+ messages in thread
From: Nikhil G. Daddikar @ 2000-12-12 14:20 UTC (permalink / raw)
To: pgsql-sql
Hi,
It is unclear to me what the real difference is and when to use what.
Any pointers would be greatly appreaciated.
Thanks!
-ngd.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Decimal vs.Numeric vs. Int & type for OID
2000-12-12 14:20 Decimal vs.Numeric vs. Int & type for OID Nikhil G. Daddikar <ngd@iname.com>
@ 2000-12-13 20:25 ` Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Eisentraut @ 2000-12-13 20:25 UTC (permalink / raw)
To: Nikhil G. Daddikar <ngd@iname.com>; +Cc: pgsql-sql
Nikhil G. Daddikar writes:
> It is unclear to me what the real difference is and when to use what.
> Any pointers would be greatly appreaciated.
Integers are integers (uh...)
Numeric is for exact fixed-point decimal numbers. Monetary amounts are a
good example. Decimal is equivalent to numeric.
The oid type should only be used as a foreign key to an oid column.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-12-13 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-12-12 14:20 Decimal vs.Numeric vs. Int & type for OID Nikhil G. Daddikar <ngd@iname.com>
2000-12-13 20:25 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox