Re: Wider than float8
От | Bruce Momjian |
---|---|
Тема | Re: Wider than float8 |
Дата | |
Msg-id | 200706090053.l590rbB15027@momjian.us обсуждение исходный текст |
Ответ на | Re: Wider than float8 (felix@crowfix.com) |
Список | pgsql-general |
felix@crowfix.com wrote: > On Fri, Jun 08, 2007 at 03:00:35PM -0400, Bruce Momjian wrote: > > No. Frankly I didn't know 12-byte floats were supported in CPUs until > > you posted this. You could write your own data type to use it, of > > course. > > I didn't either, and have no use for them, but curiousity compels me > to wonder how hard this would be. I don't have the sources right at > hand. Is all float8 code in one source file, and would it be a pretty > simple matter to add float 12 with a search and replace and not much > more? You would look in src/backend/utils/adt/float.c for the existing float8 data types, and in /contrib for examples of creating data types that are not in the backend by default. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-general по дате отправления: