From 09baa3cc81fc7c53872e10a4cc196bff61207b19 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 27 Apr 1998 04:08:07 +0000 Subject: This patch... 1. Removes the unnecessary "#define AbcRegProcedure 123"'s from pg_proc.h. 2. Changes those #defines to use the names already defined in fmgr.h. 3. Forces the make of fmgr.h in backend/Makefile instead of having it made as a dependency in access/common/Makefile *hack*hack*hack* 4. Rearranged the #includes to a less helter-skelter arrangement, also changing to "file.h" to signify a non-system header. 5. Removed "pg_proc.h" from files where its only purpose was for the #defines removed in item #1. 6. Added "fmgr.h" to each file changed for completeness sake. Turns out that #6 was not necessary for some files because fmgr.h was being included in a roundabout way SIX levels deep by the first include. "access/genam.h" ->"access/relscan.h" ->"utils/rel.h" ->"access/strat.h" ->"access/skey.h" ->"fmgr.h" So adding fmgr.h really didn't add anything to the compile, hopefully just made it clearer to the programmer. S Darren. --- src/backend/rewrite/rewriteSupport.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'src/backend/rewrite/rewriteSupport.c') diff --git a/src/backend/rewrite/rewriteSupport.c b/src/backend/rewrite/rewriteSupport.c index 691aeadc45..ced98f59dc 100644 --- a/src/backend/rewrite/rewriteSupport.c +++ b/src/backend/rewrite/rewriteSupport.c @@ -7,29 +7,28 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.19 1998/04/26 04:07:15 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.20 1998/04/27 04:06:26 momjian Exp $ * *------------------------------------------------------------------------- */ #include "postgres.h" + +#include "access/heapam.h" #include "catalog/catname.h" +#include "catalog/indexing.h" +#include "catalog/pg_class.h" #include "catalog/pg_rewrite.h" -#include "utils/syscache.h" /* for SearchSysCache */ -#include "nodes/pg_list.h" +#include "fmgr.h" #include "nodes/parsenodes.h" -#include "utils/builtins.h" /* for textout */ -#include "utils/rel.h" /* for Relation, RelationData ... */ -#include "utils/elog.h" /* for elog */ +#include "nodes/pg_list.h" #include "storage/buf.h" /* for InvalidBuffer */ -#include "rewrite/rewriteSupport.h" -#include "access/heapam.h" -#include "catalog/pg_class.h" -#include "catalog/pg_proc.h" -#include "catalog/indexing.h" +#include "utils/builtins.h" /* for textout */ #include "utils/catcache.h" /* for CacheContext */ #include "utils/mcxt.h" /* MemoryContext stuff */ -#include "utils/palloc.h" -#include "fmgr.h" +#include "utils/rel.h" /* for Relation, RelationData ... */ +#include "utils/syscache.h" /* for SearchSysCache */ + +#include "rewrite/rewriteSupport.h" /* * RuleIdGetActionInfo - -- cgit v1.2.1