summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-03-27 03:57:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-03-27 03:57:34 +0000
commit039dfbfd5d29e11da553f4a77a49ca52eafe8217 (patch)
tree2fecf592610135b5679c6e02acb5744efd5a099f /src/include/postgres.h
parent73b0300b2a9c170f67f5202f5003be10b529e0f5 (diff)
downloadpostgresql-039dfbfd5d29e11da553f4a77a49ca52eafe8217.tar.gz
Reduce the need for frontend programs to include "postgres.h" by refactoring
inclusions in src/include/catalog/*.h files. The main idea here is to push function declarations for src/backend/catalog/*.c files into separate headers, rather than sticking them into the corresponding catalog definition file as has been done in the past. This commit only carries out that idea fully for pg_proc, pg_type and pg_conversion, but that's enough for the moment --- if pg_list.h ever becomes unsafe for frontend code to include, we'll need to work a bit more. Zdenek Kotala
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r--src/include/postgres.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 3c90747192..3c4f414f64 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1995, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/postgres.h,v 1.88 2008/01/01 19:45:56 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/postgres.h,v 1.89 2008/03/27 03:57:34 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,7 +26,6 @@
* 1) variable-length datatypes (TOAST support)
* 2) datum type + support macros
* 3) exception handling definitions
- * 4) genbki macros used by catalog/pg_xxx.h files
*
* NOTES
*
@@ -708,21 +707,4 @@ extern int ExceptionalCondition(const char *conditionName,
const char *errorType,
const char *fileName, int lineNumber);
-/* ----------------------------------------------------------------
- * Section 4: genbki macros used by catalog/pg_xxx.h files
- * ----------------------------------------------------------------
- */
-#define CATALOG(name,oid) typedef struct CppConcat(FormData_,name)
-
-#define BKI_BOOTSTRAP
-#define BKI_SHARED_RELATION
-#define BKI_WITHOUT_OIDS
-
-/* these need to expand into some harmless, repeatable declaration */
-#define DATA(x) extern int no_such_variable
-#define DESCR(x) extern int no_such_variable
-#define SHDESCR(x) extern int no_such_variable
-
-typedef int4 aclitem; /* PHONY definition for catalog use only */
-
#endif /* POSTGRES_H */