File tree 12 files changed +18
-18
lines changed
12 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ OBJS = \
36
36
xlogreader.o \
37
37
xlogrecovery.o \
38
38
xlogstats.o \
39
- xlogutils.o
39
+ xlogutils.o \
40
+ xlogwait.o
40
41
41
42
include $(top_srcdir ) /src/backend/common.mk
42
43
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ backend_sources += files(
24
24
' xlogrecovery.c' ,
25
25
' xlogstats.c' ,
26
26
' xlogutils.c' ,
27
+ ' xlogwait.c' ,
27
28
)
28
29
29
30
# used by frontend programs to build a frontend xlogreader
Original file line number Diff line number Diff line change 31
31
#include "access/xloginsert.h"
32
32
#include "access/xlogrecovery.h"
33
33
#include "access/xlogutils.h"
34
+ #include "access/xlogwait.h"
34
35
#include "catalog/index.h"
35
36
#include "catalog/namespace.h"
36
37
#include "catalog/pg_enum.h"
37
38
#include "catalog/storage.h"
38
39
#include "commands/async.h"
39
40
#include "commands/tablecmds.h"
40
41
#include "commands/trigger.h"
41
- #include "commands/waitlsn.h"
42
42
#include "common/pg_prng.h"
43
43
#include "executor/spi.h"
44
44
#include "libpq/be-fsstubs.h"
Original file line number Diff line number Diff line change 62
62
#include "access/xlogreader.h"
63
63
#include "access/xlogrecovery.h"
64
64
#include "access/xlogutils.h"
65
+ #include "access/xlogwait.h"
65
66
#include "backup/basebackup.h"
66
67
#include "catalog/catversion.h"
67
68
#include "catalog/pg_control.h"
68
69
#include "catalog/pg_database.h"
69
- #include "commands/waitlsn.h"
70
70
#include "common/controldata_utils.h"
71
71
#include "common/file_utils.h"
72
72
#include "executor/instrument.h"
Original file line number Diff line number Diff line change 22
22
#include "access/xlog_internal.h"
23
23
#include "access/xlogbackup.h"
24
24
#include "access/xlogrecovery.h"
25
+ #include "access/xlogwait.h"
25
26
#include "catalog/pg_type.h"
26
- #include "commands/waitlsn.h"
27
27
#include "funcapi.h"
28
28
#include "miscadmin.h"
29
29
#include "pgstat.h"
Original file line number Diff line number Diff line change 40
40
#include "access/xlogreader.h"
41
41
#include "access/xlogrecovery.h"
42
42
#include "access/xlogutils.h"
43
+ #include "access/xlogwait.h"
43
44
#include "backup/basebackup.h"
44
45
#include "catalog/pg_control.h"
45
46
#include "commands/tablespace.h"
46
- #include "commands/waitlsn.h"
47
47
#include "common/file_utils.h"
48
48
#include "miscadmin.h"
49
49
#include "pgstat.h"
Original file line number Diff line number Diff line change 1
1
/*-------------------------------------------------------------------------
2
2
*
3
- * waitlsn .c
3
+ * xlogwait .c
4
4
* Implements waiting for the given replay LSN, which is used in
5
5
* CALL pg_wal_replay_wait(target_lsn pg_lsn, timeout float8).
6
6
*
7
7
* Copyright (c) 2024, PostgreSQL Global Development Group
8
8
*
9
9
* IDENTIFICATION
10
- * src/backend/commands/waitlsn .c
10
+ * src/backend/access/transam/xlogwait .c
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
20
20
#include "pgstat.h"
21
21
#include "access/xlog.h"
22
22
#include "access/xlogrecovery.h"
23
- #include "commands/waitlsn .h"
23
+ #include "access/xlogwait .h"
24
24
#include "funcapi.h"
25
25
#include "miscadmin.h"
26
26
#include "storage/latch.h"
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ OBJS = \
61
61
vacuum.o \
62
62
vacuumparallel.o \
63
63
variable.o \
64
- view.o \
65
- waitlsn.o
64
+ view.o
66
65
67
66
include $(top_srcdir ) /src/backend/common.mk
Original file line number Diff line number Diff line change @@ -50,5 +50,4 @@ backend_sources += files(
50
50
' vacuumparallel.c' ,
51
51
' variable.c' ,
52
52
' view.c' ,
53
- ' waitlsn.c' ,
54
53
)
Original file line number Diff line number Diff line change 24
24
#include "access/twophase.h"
25
25
#include "access/xlogprefetcher.h"
26
26
#include "access/xlogrecovery.h"
27
+ #include "access/xlogwait.h"
27
28
#include "commands/async.h"
28
- #include "commands/waitlsn.h"
29
29
#include "miscadmin.h"
30
30
#include "pgstat.h"
31
31
#include "postmaster/autovacuum.h"
Original file line number Diff line number Diff line change 36
36
#include "access/transam.h"
37
37
#include "access/twophase.h"
38
38
#include "access/xlogutils.h"
39
- #include "commands/waitlsn .h"
39
+ #include "access/xlogwait .h"
40
40
#include "miscadmin.h"
41
41
#include "pgstat.h"
42
42
#include "postmaster/autovacuum.h"
Original file line number Diff line number Diff line change 1
1
/*-------------------------------------------------------------------------
2
2
*
3
- * waitlsn .h
3
+ * xlogwait .h
4
4
* Declarations for LSN replay waiting routines.
5
5
*
6
6
* Copyright (c) 2024, PostgreSQL Global Development Group
7
7
*
8
- * src/include/commands/waitlsn .h
8
+ * src/include/access/xlogwait .h
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
12
- #ifndef WAIT_LSN_H
13
- #define WAIT_LSN_H
12
+ #ifndef XLOG_WAIT_H
13
+ #define XLOG_WAIT_H
14
14
15
15
#include "lib/pairingheap.h"
16
16
#include "postgres.h"
@@ -78,4 +78,4 @@ extern void WaitLSNSetLatches(XLogRecPtr currentLSN);
78
78
extern void WaitLSNCleanup (void );
79
79
extern void WaitForLSNReplay (XLogRecPtr targetLSN , int64 timeout );
80
80
81
- #endif /* WAIT_LSN_H */
81
+ #endif /* XLOG_WAIT_H */
You can’t perform that action at this time.
0 commit comments