summaryrefslogtreecommitdiff
path: root/src/include/tcop/pquery.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-09-04 01:13:16 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-09-04 01:13:16 -0400
commit1609797c25f6b440371045039733d69fe8cb9410 (patch)
tree7bd7b661545d483b19e11e33fccde8eee9b6c61b /src/include/tcop/pquery.h
parentf116b1f5b8d36e54404b36f1aba1295cbcfc4fdc (diff)
downloadpostgresql-1609797c25f6b440371045039733d69fe8cb9410.tar.gz
Clean up the #include mess a little.
walsender.h should depend on xlog.h, not vice versa. (Actually, the inclusion was circular until a couple hours ago, which was even sillier; but Bruce broke it in the expedient rather than logically correct direction.) Because of that poor decision, plus blind application of pgrminclude, we had a situation where half the system was depending on xlog.h to include such unrelated stuff as array.h and guc.h. Clean up the header inclusion, and manually revert a lot of what pgrminclude had done so things build again. This episode reinforces my feeling that pgrminclude should not be run without adult supervision. Inclusion changes in header files in particular need to be reviewed with great care. More generally, it'd be good if we had a clearer notion of module layering to dictate which headers can sanely include which others ... but that's a big task for another day.
Diffstat (limited to 'src/include/tcop/pquery.h')
-rw-r--r--src/include/tcop/pquery.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/tcop/pquery.h b/src/include/tcop/pquery.h
index 018577ecad..2a5e871c92 100644
--- a/src/include/tcop/pquery.h
+++ b/src/include/tcop/pquery.h
@@ -14,6 +14,7 @@
#ifndef PQUERY_H
#define PQUERY_H
+#include "nodes/parsenodes.h"
#include "utils/portal.h"