double and numeric conversion

Поиск
Список
Период
Сортировка
От Theo Schlossnagle
Тема double and numeric conversion
Дата
Msg-id 64085043-3113-46C5-AE8F-5BBD2D9C1EF4@omniti.com
обсуждение исходный текст
Ответы Re: double and numeric conversion  (Andrew Dunstan <andrew@dunslane.net>)
Re: double and numeric conversion  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello all,

I'm writing some extension and I have a hot code path that has a lot of double (C type) data and needs to output
NUMERICtuple data.  The current methods I can find in the code to convert sprintf the double to a buffer and then
invokethe numeric_in function on them.  I've profile my stuff and I'm spending (wasting) all my time in that
conversion. Is there a more efficient method of converting a double into a postgres numeric value? 

Best regards,

Theo

--
Theo Schlossnagle
http://omniti.com/is/theo-schlossnagle







В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Plans for 9.1, Grouping Sets, disabling multiqueries, contrib module for string, plpgpsm, preload dictionaries
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: function side effects