Re: Array handling in libpq - Mailing list pgsql-interfaces

From Bruno Wolff III
Subject Re: Array handling in libpq
Date
Msg-id 20070117172059.GA13308@wolff.to
Whole thread Raw
In response to Re: Array handling in libpq  ("Joris van Zwieten" <vanzwieten@stcorp.nl>)
List pgsql-interfaces
On Wed, Jan 17, 2007 at 09:45:09 +0100, Joris van Zwieten <vanzwieten@stcorp.nl> wrote:
> 
> Thanks for your replies. This is good to know, although one worry remains
> and that is loss of precision in the conversion of double to string. But
> this could probably always be solved by using enough digits in the
> conversion, right?

There is a GUC variable (extra_float_digits) for doing this. Setting it to 2
will give enough extra decimal places that you should get back the same
binary representation (on the same architecture). This is automatically used
in some cases (e.g. pgdump).


pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Array handling in libpq
Next
From: Bruno Wolff III
Date:
Subject: Re: Array handling in libpq