| From: | Theo Schlossnagle <jesus(at)omniti(dot)com> |
|---|---|
| To: | PostgreSQL-development Development <pgsql-hackers(at)postgresql(dot)org> |
| Cc: | Theo Schlossnagle <jesus(at)omniti(dot)com> |
| Subject: | double and numeric conversion |
| Date: | 2010-03-01 20:04:29 |
| Message-ID: | 64085043-3113-46C5-AE8F-5BBD2D9C1EF4@omniti.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 NUMERIC tuple data. The current methods I can find in the code to convert sprintf the double to a buffer and then invoke the 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Josh Berkus | 2010-03-01 20:04:41 | Re: Re: Hot Standby query cancellation and Streaming Replication integration |
| Previous Message | Peter Eisentraut | 2010-03-01 19:56:30 | Re: function side effects |