aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/constraint.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2019-01-21 17:03:15 -0800
committerAndres Freund <andres@anarazel.de>2019-01-21 17:06:41 -0800
commitb7eda3e0e33402a7727253e6f307ca96b92eb23d (patch)
tree0878213217c64dcde36233ef0609e0c9d2d3c945 /src/backend/commands/constraint.c
parent63746189b23815415cacc715fdc4f6b991f1a5e7 (diff)
downloadpostgresql-b7eda3e0e33402a7727253e6f307ca96b92eb23d.tar.gz
postgresql-b7eda3e0e33402a7727253e6f307ca96b92eb23d.zip
Move generic snapshot related code from tqual.h to snapmgr.h.
The code in tqual.c is largely heap specific. Due to the upcoming pluggable storage work, it therefore makes sense to move it into access/heap/ (as the file's header notes, the tqual name isn't very good). But the various statically allocated snapshot and snapshot initialization functions are now (see previous commit) generic and do not depend on functions declared in tqual.h anymore. Therefore move. Also move XidInMVCCSnapshot as that's useful for future AMs, and already used outside of tqual.c. Author: Andres Freund Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
Diffstat (limited to 'src/backend/commands/constraint.c')
-rw-r--r--src/backend/commands/constraint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/constraint.c b/src/backend/commands/constraint.c
index 66914007ecf..f9ada29af84 100644
--- a/src/backend/commands/constraint.c
+++ b/src/backend/commands/constraint.c
@@ -20,7 +20,7 @@
#include "executor/executor.h"
#include "utils/builtins.h"
#include "utils/rel.h"
-#include "utils/tqual.h"
+#include "utils/snapmgr.h"
/*