diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-11-08 17:37:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-11-08 17:37:52 +0000 |
commit | d2c744aa56aca7fe756a156a8e2109aaa676e54f (patch) | |
tree | c60eaa7b71536a84e20e883da6b28d7ad60fc229 /doc/src | |
parent | fef731d1c40e0cfd98d8a3cb724f696c9abe6f7d (diff) | |
download | postgresql-d2c744aa56aca7fe756a156a8e2109aaa676e54f.tar.gz postgresql-d2c744aa56aca7fe756a156a8e2109aaa676e54f.zip |
Add extra_float_digits GUC parameter to allow adjustment of displayed
precision for float4, float8, and geometric types. Set it in pg_dump
so that float data can be dumped/reloaded exactly (at least on platforms
where the float I/O support is properly implemented). Initial patch by
Pedro Ferreira, some additional work by Tom Lane.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/runtime.sgml | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 25a39862042..c5718040fcb 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.148 2002/11/05 23:16:56 momjian Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.149 2002/11/08 17:37:52 tgl Exp $ --> <Chapter Id="runtime"> @@ -1449,6 +1449,30 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' </varlistentry> <varlistentry> + <indexterm> + <primary>significant digits</primary> + </indexterm> + <indexterm> + <primary>display</primary> + <secondary>of float numbers</secondary> + </indexterm> + + <term><varname>EXTRA_FLOAT_DIGITS</varname> (<type>integer</type>)</term> + <listitem> + <para> + This parameter adjusts the number of digits displayed for + floating-point values, including <type>float4</>, <type>float8</>, + and geometric datatypes. The parameter value is added to the + standard number of digits (<literal>FLT_DIG</> or <literal>DBL_DIG</> + as appropriate). The value can be set as high as 2, to include + partially-significant digits; this is especially useful for dumping + float data that needs to be restored exactly. Or it can be set + negative to suppress unwanted digits. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><varname>KRB_SERVER_KEYFILE</varname> (<type>string</type>)</term> <listitem> <para> |