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 /src/include/utils/builtins.h | |
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 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index a933520daa2..f134bdb4955 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.204 2002/11/02 18:41:22 tgl Exp $ + * $Id: builtins.h,v 1.205 2002/11/08 17:37:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -212,6 +212,8 @@ extern Datum btnamecmp(PG_FUNCTION_ARGS); extern Datum bttextcmp(PG_FUNCTION_ARGS); /* float.c */ +extern int extra_float_digits; + extern Datum float4in(PG_FUNCTION_ARGS); extern Datum float4out(PG_FUNCTION_ARGS); extern Datum float8in(PG_FUNCTION_ARGS); |