diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-03-27 03:57:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-03-27 03:57:34 +0000 |
commit | 039dfbfd5d29e11da553f4a77a49ca52eafe8217 (patch) | |
tree | 2fecf592610135b5679c6e02acb5744efd5a099f /src/bin/psql/print.c | |
parent | 73b0300b2a9c170f67f5202f5003be10b529e0f5 (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/bin/psql/print.c')
-rw-r--r-- | src/bin/psql/print.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 16c98c283b5..411c66b1a01 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -3,12 +3,10 @@ * * Copyright (c) 2000-2008, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.96 2008/01/01 19:45:56 momjian Exp $ - * - * Note: we include postgres.h not postgres_fe.h so that we can include - * catalog/pg_type.h, and thereby have access to INT4OID and similar macros. + * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.97 2008/03/27 03:57:34 tgl Exp $ */ -#include "postgres.h" +#include "postgres_fe.h" + #include "print.h" #include "catalog/pg_type.h" |