aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-06-28 01:19:11 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-06-28 01:19:11 +0000
commit04ab0cb5c1c0a396aa888187fa45d2ce33ab47b6 (patch)
tree6803e2c70ae7ac81d9b284a1da1c3820ad803392
parentadc507f24244972c51f466ba5e960b6ad6a504e2 (diff)
downloadpostgresql-04ab0cb5c1c0a396aa888187fa45d2ce33ab47b6.tar.gz
postgresql-04ab0cb5c1c0a396aa888187fa45d2ce33ab47b6.zip
Remove some no-longer-needed #includes.
-rw-r--r--src/backend/parser/gram.y11
-rw-r--r--src/backend/parser/scan.l8
2 files changed, 6 insertions, 13 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 9c94fe9a4f3..7446bc612d5 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.464 2004/06/28 00:18:47 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.465 2004/06/28 01:19:11 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -51,18 +51,15 @@
#include <ctype.h>
#include <limits.h>
-#include "access/htup.h"
#include "catalog/index.h"
#include "catalog/namespace.h"
-#include "catalog/pg_type.h"
#include "nodes/makefuncs.h"
-#include "nodes/params.h"
-#include "nodes/parsenodes.h"
#include "parser/gramparse.h"
#include "storage/lmgr.h"
-#include "utils/numeric.h"
-#include "utils/datetime.h"
#include "utils/date.h"
+#include "utils/datetime.h"
+#include "utils/numeric.h"
+
extern List *parsetree; /* final parse result is delivered here */
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l
index b788a42bc98..2f4910f1370 100644
--- a/src/backend/parser/scan.l
+++ b/src/backend/parser/scan.l
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.115 2004/02/24 21:45:18 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.116 2004/06/28 01:19:11 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -18,19 +18,15 @@
#include <ctype.h>
#include <unistd.h>
-#include <errno.h>
-#include "miscadmin.h"
-#include "nodes/parsenodes.h"
-#include "nodes/pg_list.h"
#include "parser/gramparse.h"
#include "parser/keywords.h"
/* Not needed now that this file is compiled as part of gram.y */
/* #include "parser/parse.h" */
#include "parser/scansup.h"
-#include "utils/builtins.h"
#include "mb/pg_wchar.h"
+
/* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */
#define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg)))