Re: pg_upgrade and extra_float_digits

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pg_upgrade and extra_float_digits
Дата
Msg-id 4BEF5B87.1040300@dunslane.net
обсуждение исходный текст
Ответ на pg_upgrade and extra_float_digits  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: pg_upgrade and extra_float_digits  (Bruce Momjian <bruce@momjian.us>)
Re: pg_upgrade and extra_float_digits  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

Bruce Momjian wrote:
> FYI, I test pg_upgrade by loading the old cluster's regression database
> from a pg_dump output file, then after the upgrade, I dump the
> regression database of the new cluster and diff the changes.
>
> The problem I just encountered is that pg_dump uses
> extra_float_digits=-3 for 9.0, while previous releases used '2'.  I had
> to do hack each server version to get a dump output that would match
> without rounding errors --- it did eventually work and validated.
>
>   

That sounds like a disaster waiting to happen. The server version is 
going to affect much more than just this behaviour, surely. Wouldn't it 
be better to provide a pg_dump option to provide the extra_float_digits 
setting?

cheers

andrew


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pg_upgrade and extra_float_digits
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade and extra_float_digits