Theo Schlossnagle wrote:
I didn't look deeply at the postgres internals to see if there was a way to do double
- numeric and integer-types - numeric without intermediary string format. If
that sort of thing is easy to leverage, I'd be happy to share the code.
I think your code could be
2010/3/3 Yeb Havinga yebhavi...@gmail.com:
Theo Schlossnagle wrote:
I didn't look deeply at the postgres internals to see if there was a way
to do double - numeric and integer-types - numeric without intermediary
string format. If that sort of thing is easy to leverage, I'd be happy to
Pavel Stehule wrote:
2010/3/3 Yeb Havinga yebhavi...@gmail.com:
Theo Schlossnagle wrote:
I didn't look deeply at the postgres internals to see if there was a way
to do double - numeric and integer-types - numeric without intermediary
string format. If that sort of thing is easy to
2010/3/3 Yeb Havinga yebhavi...@gmail.com:
Pavel Stehule wrote:
2010/3/3 Yeb Havinga yebhavi...@gmail.com:
Theo Schlossnagle wrote:
I didn't look deeply at the postgres internals to see if there was a way
to do double - numeric and integer-types - numeric without
intermediary
string
I can't release all of it, but the functions to convert uint64_t, int64_t and
double to numeric Datum are the meat and I can expose those...
https://labs.omniti.com/pgsoltools/trunk/contrib/scratch/pg_type_to_numeric.c
As I mentioned, the dscale on the double_to_numeric is imperfect resulting
if (p1 buf)
++ * --p1;
else {
++ * --p1; ???
does it even compile ?
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
On 3 Mar 2010, at 17:41, Grzegorz Jaskiewicz wrote:
if (p1 buf)
++ * --p1;
else {
++ * --p1; ???
does it even compile ?
Oh, I can see, that it is *(--p1)++ ,mea culpa.
Which doesn't change the fact, that the code is rather messy imo.
--
Sent via
On Mar 1, 2010, at 4:35 PM, Tom Lane wrote:
Theo Schlossnagle je...@omniti.com writes:
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
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
Theo Schlossnagle wrote:
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
Theo Schlossnagle je...@omniti.com writes:
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
11 matches
Mail list logo