File tree Expand file tree Collapse file tree 17 files changed +75
-67
lines changed Expand file tree Collapse file tree 17 files changed +75
-67
lines changed Original file line number Diff line number Diff line change 88
88
89
89
#include "access/heapam_xlog.h"
90
90
#include "access/visibilitymap.h"
91
- #include "access/xlog .h"
91
+ #include "access/xlogutils .h"
92
92
#include "miscadmin.h"
93
93
#include "port/pg_bitutils.h"
94
94
#include "storage/bufmgr.h"
Original file line number Diff line number Diff line change 28
28
#include "access/htup_details.h"
29
29
#include "access/slru.h"
30
30
#include "access/transam.h"
31
+ #include "access/xlogutils.h"
31
32
#include "catalog/pg_type.h"
32
33
#include "funcapi.h"
33
34
#include "miscadmin.h"
Original file line number Diff line number Diff line change 74
74
#include "access/twophase.h"
75
75
#include "access/twophase_rmgr.h"
76
76
#include "access/xact.h"
77
- #include "access/xlog.h"
78
77
#include "access/xloginsert.h"
78
+ #include "access/xlogutils.h"
79
79
#include "catalog/pg_type.h"
80
80
#include "commands/dbcommands.h"
81
81
#include "funcapi.h"
Original file line number Diff line number Diff line change 54
54
#include "access/slru.h"
55
55
#include "access/transam.h"
56
56
#include "access/xlog.h"
57
+ #include "access/xlogutils.h"
57
58
#include "miscadmin.h"
58
59
#include "pgstat.h"
59
60
#include "storage/fd.h"
Original file line number Diff line number Diff line change 18
18
#include "access/subtrans.h"
19
19
#include "access/transam.h"
20
20
#include "access/xact.h"
21
- #include "access/xlog .h"
21
+ #include "access/xlogutils .h"
22
22
#include "commands/dbcommands.h"
23
23
#include "miscadmin.h"
24
24
#include "postmaster/autovacuum.h"
Original file line number Diff line number Diff line change @@ -193,22 +193,6 @@ CheckpointStatsData CheckpointStats;
193
193
*/
194
194
TimeLineID ThisTimeLineID = 0 ;
195
195
196
- /*
197
- * Are we doing recovery from XLOG?
198
- *
199
- * This is only ever true in the startup process; it should be read as meaning
200
- * "this process is replaying WAL records", rather than "the system is in
201
- * recovery mode". It should be examined primarily by functions that need
202
- * to act differently when called from a WAL redo function (e.g., to skip WAL
203
- * logging). To check whether the system is in recovery regardless of which
204
- * process you're running in, use RecoveryInProgress() but only after shared
205
- * memory startup and lock initialization.
206
- */
207
- bool InRecovery = false;
208
-
209
- /* Are we in Hot Standby mode? Only valid in startup process, see xlog.h */
210
- HotStandbyState standbyState = STANDBY_DISABLED ;
211
-
212
196
static XLogRecPtr LastRec ;
213
197
214
198
/* Local copy of WalRcv->flushedUpto */
Original file line number Diff line number Diff line change 25
25
#include "access/xlogutils.h"
26
26
#include "miscadmin.h"
27
27
#include "pgstat.h"
28
+ #include "storage/fd.h"
28
29
#include "storage/smgr.h"
29
30
#include "utils/guc.h"
30
31
#include "utils/hsearch.h"
34
35
/* GUC variable */
35
36
bool ignore_invalid_pages = false;
36
37
38
+ /*
39
+ * Are we doing recovery from XLOG?
40
+ *
41
+ * This is only ever true in the startup process; it should be read as meaning
42
+ * "this process is replaying WAL records", rather than "the system is in
43
+ * recovery mode". It should be examined primarily by functions that need
44
+ * to act differently when called from a WAL redo function (e.g., to skip WAL
45
+ * logging). To check whether the system is in recovery regardless of which
46
+ * process you're running in, use RecoveryInProgress() but only after shared
47
+ * memory startup and lock initialization.
48
+ *
49
+ * This is updated from xlog.c, but lives here because it's mostly read by
50
+ * WAL redo functions.
51
+ */
52
+ bool InRecovery = false;
53
+
54
+ /* Are we in Hot Standby mode? Only valid in startup process, see xlogutils.h */
55
+ HotStandbyState standbyState = STANDBY_DISABLED ;
56
+
37
57
/*
38
58
* During XLOG replay, we may see XLOG records for incremental updates of
39
59
* pages that no longer exist, because their relation was later dropped or
Original file line number Diff line number Diff line change 56
56
#include "access/sysattr.h"
57
57
#include "access/tableam.h"
58
58
#include "access/xact.h"
59
- #include "access/xlog.h"
60
59
#include "access/xloginsert.h"
60
+ #include "access/xlogutils.h"
61
61
#include "catalog/catalog.h"
62
62
#include "catalog/dependency.h"
63
63
#include "catalog/indexing.h"
Original file line number Diff line number Diff line change 20
20
#include "postgres.h"
21
21
22
22
#include "access/xlog.h"
23
+ #include "access/xlogutils.h"
23
24
#include "libpq/pqsignal.h"
24
25
#include "miscadmin.h"
25
26
#include "pgstat.h"
Original file line number Diff line number Diff line change 34
34
#include <unistd.h>
35
35
36
36
#include "access/tableam.h"
37
- #include "access/xlog .h"
37
+ #include "access/xlogutils .h"
38
38
#include "catalog/catalog.h"
39
39
#include "catalog/storage.h"
40
40
#include "executor/instrument.h"
You can’t perform that action at this time.
0 commit comments