Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb7eda3e

Browse files
committed
Move generic snapshot related code from tqual.h to snapmgr.h.
The code in tqual.c is largely heap specific. Due to the upcomingpluggable storage work, it therefore makes sense to move it intoaccess/heap/ (as the file's header notes, the tqual name isn't verygood).But the various statically allocated snapshot and snapshotinitialization functions are now (see previous commit) generic and donot depend on functions declared in tqual.h anymore. Therefore move.Also move XidInMVCCSnapshot as that's useful for future AMs, andalready used outside of tqual.c.Author: Andres FreundDiscussion:https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
1 parent6374618 commitb7eda3e

File tree

17 files changed

+177
-181
lines changed

17 files changed

+177
-181
lines changed

‎contrib/amcheck/verify_nbtree.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include"storage/lmgr.h"
3737
#include"utils/memutils.h"
3838
#include"utils/snapmgr.h"
39-
#include"utils/tqual.h"
4039

4140

4241
PG_MODULE_MAGIC;

‎contrib/sepgsql/database.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include"commands/seclabel.h"
2222
#include"utils/builtins.h"
2323
#include"utils/fmgroids.h"
24-
#include"utils/tqual.h"
24+
#include"utils/snapmgr.h"
2525
#include"sepgsql.h"
2626

2727
/*

‎contrib/sepgsql/proc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include"utils/builtins.h"
2525
#include"utils/fmgroids.h"
2626
#include"utils/lsyscache.h"
27+
#include"utils/snapmgr.h"
2728
#include"utils/syscache.h"
28-
#include"utils/tqual.h"
2929

3030
#include"sepgsql.h"
3131

‎contrib/sepgsql/relation.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
#include"utils/catcache.h"
2727
#include"utils/lsyscache.h"
2828
#include"utils/rel.h"
29+
#include"utils/snapmgr.h"
2930
#include"utils/syscache.h"
30-
#include"utils/tqual.h"
3131

3232
#include"sepgsql.h"
3333

‎contrib/sepgsql/schema.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include"utils/builtins.h"
2525
#include"utils/fmgroids.h"
2626
#include"utils/lsyscache.h"
27-
#include"utils/tqual.h"
27+
#include"utils/snapmgr.h"
2828

2929
#include"sepgsql.h"
3030

‎src/backend/access/nbtree/nbtsort.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
#include"utils/rel.h"
7373
#include"utils/sortsupport.h"
7474
#include"utils/tuplesort.h"
75-
#include"utils/tqual.h"
7675

7776

7877
/* Magic numbers for parallel state sharing */

‎src/backend/catalog/catalog.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
#include"utils/fmgroids.h"
4848
#include"utils/fmgrprotos.h"
4949
#include"utils/rel.h"
50+
#include"utils/snapmgr.h"
5051
#include"utils/syscache.h"
51-
#include"utils/tqual.h"
5252

5353

5454
/*

‎src/backend/commands/async.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@
139139
#include"utils/ps_status.h"
140140
#include"utils/snapmgr.h"
141141
#include"utils/timestamp.h"
142-
#include"utils/tqual.h"
143142

144143

145144
/*

‎src/backend/commands/constraint.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include"executor/executor.h"
2121
#include"utils/builtins.h"
2222
#include"utils/rel.h"
23-
#include"utils/tqual.h"
23+
#include"utils/snapmgr.h"
2424

2525

2626
/*

‎src/backend/executor/execIndexing.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
#include"executor/executor.h"
114114
#include"nodes/nodeFuncs.h"
115115
#include"storage/lmgr.h"
116-
#include"utils/tqual.h"
116+
#include"utils/snapmgr.h"
117117

118118
/* waitMode argument to check_exclusion_or_unique_constraint() */
119119
typedefenum

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp