mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Increase the maximum value of extra_float_digits to 3, and have pg_dump
use that value when the backend is new enough to allow it. This responds to bug report from Keh-Cheng Chu pointing out that although 2 extra digits should be sufficient to dump and restore float8 exactly, it is possible to need 3 extra digits for float4 values.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.516 2009/09/08 17:08:36 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.517 2009/09/11 19:17:03 tgl Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1684,7 +1684,7 @@ static struct config_int ConfigureNamesInt[] =
|
||||
"(FLT_DIG or DBL_DIG as appropriate).")
|
||||
},
|
||||
&extra_float_digits,
|
||||
0, -15, 2, NULL, NULL
|
||||
0, -15, 3, NULL, NULL
|
||||
},
|
||||
|
||||
{
|
||||
|
@@ -445,7 +445,7 @@
|
||||
# India
|
||||
# You can create your own file in
|
||||
# share/timezonesets/.
|
||||
#extra_float_digits = 0 # min -15, max 2
|
||||
#extra_float_digits = 0 # min -15, max 3
|
||||
#client_encoding = sql_ascii # actually, defaults to database
|
||||
# encoding
|
||||
|
||||
|
Reference in New Issue
Block a user