summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorTom Lane2008-03-27 03:57:34 +0000
committerTom Lane2008-03-27 03:57:34 +0000
commit32bf9413b89d49773989b6bdac675cf3bdd64c90 (patch)
tree361ff71b78ca790f4d8d5a5df68077e322b1c5d6 /src/include/postgres.h
parent8fc7d48b35e60a012fa757c8cd388304c1d42af3 (diff)
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.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 47f9d875bc..043922a8d2 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -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 */