Skip to content

Commit b5626a2

Browse files
Jan WieckJan Wieck
authored andcommitted
Restricted maximum precision for NUMERIC to 1000 digits.
Anything else is CPU overkill. Jan
1 parent 814c849 commit b5626a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/utils/numeric.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* 1998 Jan Wieck
77
*
8-
* $Header: /cvsroot/pgsql/src/include/utils/numeric.h,v 1.2 1998/12/30 20:46:06 wieck Exp $
8+
* $Header: /cvsroot/pgsql/src/include/utils/numeric.h,v 1.3 1999/01/05 11:12:11 wieck Exp $
99
*
1010
* ----------
1111
*/
@@ -20,7 +20,7 @@
2020
* The hardcoded limits and defaults of the numeric data type
2121
* ----------
2222
*/
23-
#define NUMERIC_MAX_PRECISION 4000
23+
#define NUMERIC_MAX_PRECISION 1000
2424
#define NUMERIC_DEFAULT_PRECISION 30
2525
#define NUMERIC_DEFAULT_SCALE 6
2626

0 commit comments

Comments
 (0)