aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-06-25 21:11:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-06-25 21:11:45 +0000
commit4d58a7ca878bbb0a252e1d8175a7ea3a385c1d9e (patch)
treee4e6dae9e84149ea8ffe2e6d7c35cf101b6b10ab /src/backend/utils/adt/formatting.c
parentc31545af2720591b21ad0039b3160225acd328b9 (diff)
downloadpostgresql-4d58a7ca878bbb0a252e1d8175a7ea3a385c1d9e.tar.gz
postgresql-4d58a7ca878bbb0a252e1d8175a7ea3a385c1d9e.zip
Optimizer can now estimate selectivity of IS NULL, IS NOT NULL,
IS TRUE, etc, with some degree of verisimilitude. Split out selectivity support functions from builtins.h into a new header file selfuncs.h, so as to reduce the number of header files builtins.h must depend on. Fix a few missing inclusions exposed thereby. From Joe Conway, with some kibitzing from Tom Lane.
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
-rw-r--r--src/backend/utils/adt/formatting.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index 1ad99d330e5..ee92651f574 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------
* formatting.c
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.37 2001/05/03 22:53:07 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.38 2001/06/25 21:11:44 tgl Exp $
*
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
@@ -67,21 +67,23 @@
#define DEBUG_elog_output NOTICE
***/
-#include <stdio.h>
-#include <string.h>
+#include "postgres.h"
+
#include <ctype.h>
#include <sys/time.h>
#include <unistd.h>
+#ifdef USE_LOCALE
#include <locale.h>
+#endif
#include <math.h>
#include <float.h>
-#include "postgres.h"
#include "utils/builtins.h"
#include "utils/date.h"
#include "utils/datetime.h"
#include "utils/formatting.h"
#include "utils/int8.h"
+#include "utils/numeric.h"
#include "utils/pg_locale.h"
/* ----------