From: postgresql.org@tgice.com
To: pgsql-odbc@postgresql.org
Subject: Re: float8 auto truncation issue in ODBC v. PGSQL
Date: Thu, 15 Jun 2006 11:58:45 -0500
Message-ID: <449191C5.5010800@tgice.com> (raw)
In-Reply-To: <10152.1150229689@sss.pgh.pa.us>
References: <448F11E2.1020504@tgice.com>
<10152.1150229689@sss.pgh.pa.us>
Tom Lane wrote:
> By default, the float8 output routine prints a digit or so less than it
> could, precisely to avoid that sort of unsightly result. You can fool
> with float_extra_digits (I think that's the right name, check the docs)
> if you need to adjust this behavior.
Thanks Tom,
You rock. The option is extra_float_digits. I figured Postgres would
have something handy like this available. I just set that to "2" in my
postgresql.conf (the maximum allowed value), and the psql queries return
what I was trying to get.
> This would only matter within a plpgsql function if you are doing
> something that forces the binary value to be converted to text. Which,
> if you're doing tense float computation, you probably don't want to have
> happen at all.
Yes, I'll have to look into this a bit more as the correct value still
doesn't seem to be coming out of my function.
John
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: postgresql.org@tgice.com
Subject: Re: float8 auto truncation issue in ODBC v. PGSQL
In-Reply-To: <449191C5.5010800@tgice.com>
References: <448F11E2.1020504@tgice.com> <10152.1150229689@sss.pgh.pa.us> <449191C5.5010800@tgice.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox