aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/constraint.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2019-01-14 17:02:12 -0800
committerAndres Freund <andres@anarazel.de>2019-01-14 17:02:12 -0800
commit0944ec54de389b4b8a471ca1f40f1b9d81de1f30 (patch)
tree10c8f7e4fa3659c96caad6f6bb3e3f4c7a0d1d7d /src/backend/commands/constraint.c
parent774a975c9a5903d271a727a260efd8c31125b9d6 (diff)
downloadpostgresql-0944ec54de389b4b8a471ca1f40f1b9d81de1f30.tar.gz
postgresql-0944ec54de389b4b8a471ca1f40f1b9d81de1f30.zip
Don't include genam.h from execnodes.h and relscan.h anymore.
This is the genam.h equivalent of 4c850ecec649c (which removed heapam.h from a lot of other headers). There's still a few header includes of genam.h, but not from central headers anymore. As a few headers are not indirectly included anymore, execnodes.h and relscan.h need a few additional includes. Some of the depended on types were replacable by using the underlying structs, but e.g. for Snapshot in execnodes.h that'd have gotten more invasive than reasonable in this commit. Like the aforementioned commit 4c850ecec649c, this requires adding new genam.h includes to a number of backend files, which likely is also required in a few external projects. Author: Andres Freund Discussion: https://postgr.es/m/20190114000701.y4ttcb74jpskkcfb@alap3.anarazel.de
Diffstat (limited to 'src/backend/commands/constraint.c')
-rw-r--r--src/backend/commands/constraint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/commands/constraint.c b/src/backend/commands/constraint.c
index b9aec7d18be..66914007ecf 100644
--- a/src/backend/commands/constraint.c
+++ b/src/backend/commands/constraint.c
@@ -13,6 +13,7 @@
*/
#include "postgres.h"
+#include "access/genam.h"
#include "access/heapam.h"
#include "catalog/index.h"
#include "commands/trigger.h"