From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Re: [QUESTIONS] money or dollar type |
Date: | 1998-05-13 17:36:15 |
Message-ID: | 5392.895080975@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> I have thought about this. Just bitmask the 16-bits to two 8-bit
> quantities. Give you max 256 length with 256 currencies.
Uh, no: what we were discussing was the total width and decimal place
position of exact numerics. Probably, 255 numeric digits are enough
for practical purposes, so I don't feel an urgent need to make atttypmod
wider for this. But if you want to make it 32 bits, that would
eliminate any concern --- we'd have room for 64k-digit numerics...
If we're going to associate currencies with the money datatype, the
currency needs to be part of the data, not part of the column type.
I need to be able to store amounts of different currencies in the same
column. (Otherwise, a transaction log would need a separate column for
every possible currency, all but one of which would be null in any given
row. Ick.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-05-13 18:02:18 | Re: [HACKERS] mmap and MAP_ANON |
Previous Message | Tom Lane | 1998-05-13 17:29:02 | Re: [HACKERS] mmap and MAP_ANON |