aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/common
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2012-08-30 16:15:44 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2012-08-30 16:52:35 -0400
commitc219d9b0a55bcdf81b00da6bad24ac2bf3e53d20 (patch)
treed3130101cfa437376e15c1d0d835e102e439104a /src/backend/access/common
parent381a9ed66d8a601eb972be172e7251ca7f0e9d78 (diff)
downloadpostgresql-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 'src/backend/access/common')
-rw-r--r--src/backend/access/common/reloptions.c1
-rw-r--r--src/backend/access/common/tupconvert.c1
-rw-r--r--src/backend/access/common/tupdesc.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/access/common/reloptions.c b/src/backend/access/common/reloptions.c
index 1eeaadecffe..bc6911e4960 100644
--- a/src/backend/access/common/reloptions.c
+++ b/src/backend/access/common/reloptions.c
@@ -17,6 +17,7 @@
#include "access/gist_private.h"
#include "access/hash.h"
+#include "access/htup_details.h"
#include "access/nbtree.h"
#include "access/reloptions.h"
#include "access/spgist.h"
diff --git a/src/backend/access/common/tupconvert.c b/src/backend/access/common/tupconvert.c
index f5a43d47b88..f813432c7d5 100644
--- a/src/backend/access/common/tupconvert.c
+++ b/src/backend/access/common/tupconvert.c
@@ -20,6 +20,7 @@
*/
#include "postgres.h"
+#include "access/htup_details.h"
#include "access/tupconvert.h"
#include "utils/builtins.h"
diff --git a/src/backend/access/common/tupdesc.c b/src/backend/access/common/tupdesc.c
index 99d0d1802ce..2f10910b823 100644
--- a/src/backend/access/common/tupdesc.c
+++ b/src/backend/access/common/tupdesc.c
@@ -19,6 +19,7 @@
#include "postgres.h"
+#include "access/htup_details.h"
#include "catalog/pg_type.h"
#include "miscadmin.h"
#include "parser/parse_type.h"