diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-08-30 16:15:44 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-08-30 16:52:35 -0400 |
commit | c219d9b0a55bcdf81b00da6bad24ac2bf3e53d20 (patch) | |
tree | d3130101cfa437376e15c1d0d835e102e439104a /contrib | |
parent | 381a9ed66d8a601eb972be172e7251ca7f0e9d78 (diff) | |
download | postgresql-c219d9b0a55bcdf81b00da6bad24ac2bf3e53d20.tar.gz postgresql-c219d9b0a55bcdf81b00da6bad24ac2bf3e53d20.zip |
Split tuple struct defs from htup.h to htup_details.h
This reduces unnecessary exposure of other headers through htup.h, which
is very widely included by many files.
I have chosen to move the function prototypes to the new file as well,
because that means htup.h no longer needs to include tupdesc.h. In
itself this doesn't have much effect in indirect inclusion of tupdesc.h
throughout the tree, because it's also required by execnodes.h; but it's
something to explore in the future, and it seemed best to do the htup.h
change now while I'm busy with it.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/dblink/dblink.c | 4 | ||||
-rw-r--r-- | contrib/file_fdw/file_fdw.c | 1 | ||||
-rw-r--r-- | contrib/hstore/hstore_io.c | 1 | ||||
-rw-r--r-- | contrib/hstore/hstore_op.c | 1 | ||||
-rw-r--r-- | contrib/ltree/ltree_op.c | 1 | ||||
-rw-r--r-- | contrib/pageinspect/heapfuncs.c | 1 | ||||
-rw-r--r-- | contrib/pageinspect/rawpage.c | 1 | ||||
-rw-r--r-- | contrib/pg_buffercache/pg_buffercache_pages.c | 1 | ||||
-rw-r--r-- | contrib/tablefunc/tablefunc.c | 1 | ||||
-rw-r--r-- | contrib/tcn/tcn.c | 1 | ||||
-rw-r--r-- | contrib/xml2/xpath.c | 1 |
11 files changed, 13 insertions, 1 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index 9dd0fc547bd..9f1dac899e1 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -35,12 +35,14 @@ #include <limits.h> #include "libpq-fe.h" -#include "funcapi.h" + +#include "access/htup_details.h" #include "catalog/indexing.h" #include "catalog/namespace.h" #include "catalog/pg_type.h" #include "executor/spi.h" #include "foreign/foreign.h" +#include "funcapi.h" #include "lib/stringinfo.h" #include "mb/pg_wchar.h" #include "miscadmin.h" diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index 7c7fedfcdbb..81fc4e29008 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -15,6 +15,7 @@ #include <sys/stat.h> #include <unistd.h> +#include "access/htup_details.h" #include "access/reloptions.h" #include "access/sysattr.h" #include "catalog/pg_foreign_table.h" diff --git a/contrib/hstore/hstore_io.c b/contrib/hstore/hstore_io.c index 7bdac3d94cb..e84cdd69051 100644 --- a/contrib/hstore/hstore_io.c +++ b/contrib/hstore/hstore_io.c @@ -5,6 +5,7 @@ #include <ctype.h> +#include "access/htup_details.h" #include "catalog/pg_type.h" #include "funcapi.h" #include "libpq/pqformat.h" diff --git a/contrib/hstore/hstore_op.c b/contrib/hstore/hstore_op.c index fee2c3c5aea..45edb048ceb 100644 --- a/contrib/hstore/hstore_op.c +++ b/contrib/hstore/hstore_op.c @@ -4,6 +4,7 @@ #include "postgres.h" #include "access/hash.h" +#include "access/htup_details.h" #include "catalog/pg_type.h" #include "funcapi.h" #include "utils/builtins.h" diff --git a/contrib/ltree/ltree_op.c b/contrib/ltree/ltree_op.c index 4d8fb842c14..25b6db1b1aa 100644 --- a/contrib/ltree/ltree_op.c +++ b/contrib/ltree/ltree_op.c @@ -7,6 +7,7 @@ #include <ctype.h> +#include "access/htup_details.h" #include "catalog/pg_statistic.h" #include "utils/builtins.h" #include "utils/lsyscache.h" diff --git a/contrib/pageinspect/heapfuncs.c b/contrib/pageinspect/heapfuncs.c index 260ccffdc7c..6f3af776740 100644 --- a/contrib/pageinspect/heapfuncs.c +++ b/contrib/pageinspect/heapfuncs.c @@ -25,6 +25,7 @@ #include "postgres.h" +#include "access/htup_details.h" #include "funcapi.h" #include "utils/builtins.h" #include "miscadmin.h" diff --git a/contrib/pageinspect/rawpage.c b/contrib/pageinspect/rawpage.c index e8a79401adc..52eb55267b8 100644 --- a/contrib/pageinspect/rawpage.c +++ b/contrib/pageinspect/rawpage.c @@ -15,6 +15,7 @@ #include "postgres.h" +#include "access/htup_details.h" #include "catalog/catalog.h" #include "catalog/namespace.h" #include "funcapi.h" diff --git a/contrib/pg_buffercache/pg_buffercache_pages.c b/contrib/pg_buffercache/pg_buffercache_pages.c index 27e52b3b35f..dbf8030f7c6 100644 --- a/contrib/pg_buffercache/pg_buffercache_pages.c +++ b/contrib/pg_buffercache/pg_buffercache_pages.c @@ -8,6 +8,7 @@ */ #include "postgres.h" +#include "access/htup_details.h" #include "catalog/pg_type.h" #include "funcapi.h" #include "storage/buf_internals.h" diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c index 963a88fa104..8be7ad46196 100644 --- a/contrib/tablefunc/tablefunc.c +++ b/contrib/tablefunc/tablefunc.c @@ -34,6 +34,7 @@ #include <math.h> +#include "access/htup_details.h" #include "catalog/pg_type.h" #include "executor/spi.h" #include "funcapi.h" diff --git a/contrib/tcn/tcn.c b/contrib/tcn/tcn.c index 314632dd893..6a8a96f6033 100644 --- a/contrib/tcn/tcn.c +++ b/contrib/tcn/tcn.c @@ -15,6 +15,7 @@ #include "postgres.h" +#include "access/htup_details.h" #include "executor/spi.h" #include "commands/async.h" #include "commands/trigger.h" diff --git a/contrib/xml2/xpath.c b/contrib/xml2/xpath.c index 660d25c3490..41cb98d1395 100644 --- a/contrib/xml2/xpath.c +++ b/contrib/xml2/xpath.c @@ -6,6 +6,7 @@ */ #include "postgres.h" +#include "access/htup_details.h" #include "executor/spi.h" #include "fmgr.h" #include "funcapi.h" |