Re: Array handling in libpq

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Array handling in libpq
Дата
Msg-id 20070117172059.GA13308@wolff.to
обсуждение исходный текст
Ответ на Re: Array handling in libpq  ("Joris van Zwieten" <vanzwieten@stcorp.nl>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Array handling in libpq
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Array handling in libpq