Re: New version of money type
От | Stephen Frost |
---|---|
Тема | Re: New version of money type |
Дата | |
Msg-id | 20060917002948.GL6548@kenobi.snowman.net обсуждение исходный текст |
Ответ на | Re: New version of money type (Gregory Stark <stark@enterprisedb.com>) |
Список | pgsql-hackers |
* Gregory Stark (stark@enterprisedb.com) wrote: > In any case I think Jim was suggesting this be handled internally to the > numeric data type which wouldn't cause this problem. However I'm not sure > anything has to be done. A numeric is an array of 16 bit integers, so anything > under 64k *is* stored just as an integer. Right, which is fine, but for >64k (Actually, isn't it 10,000?), operations could be done in 1 step using 64bit ints instead of in multiple steps. On systems with fast 64bit integer ops (quite a few of them out there these days...) this seems likely to be an improvement in performance. Of course, there's the question of how much of an improvement, how complicated it makes the code, backwards-compatibility issues, and what to do about the binary in/out operations. Thanks, Stephen
В списке pgsql-hackers по дате отправления: