From 4d58a7ca878bbb0a252e1d8175a7ea3a385c1d9e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 25 Jun 2001 21:11:45 +0000 Subject: 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. --- src/backend/utils/adt/formatting.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/backend/utils/adt/formatting.c') 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 -#include +#include "postgres.h" + #include #include #include +#ifdef USE_LOCALE #include +#endif #include #include -#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" /* ---------- -- cgit v1.2.3