PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
pgarch.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* pgarch.h
4
* Exports from postmaster/pgarch.c.
5
*
6
* Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
8
*
9
* src/include/postmaster/pgarch.h
10
*
11
*-------------------------------------------------------------------------
12
*/
13
#ifndef _PGARCH_H
14
#define _PGARCH_H
15
16
/* ----------
17
* Archiver control info.
18
*
19
* We expect that archivable files within pg_wal will have names between
20
* MIN_XFN_CHARS and MAX_XFN_CHARS in length, consisting only of characters
21
* appearing in VALID_XFN_CHARS. The status files in archive_status have
22
* corresponding names with ".ready" or ".done" appended.
23
* ----------
24
*/
25
#define MIN_XFN_CHARS 16
26
#define MAX_XFN_CHARS 40
27
#define VALID_XFN_CHARS "0123456789ABCDEF.history.backup.partial"
28
29
extern
bool
PgArchCanRestart
(
void
);
30
pg_noreturn
extern
void
PgArchiverMain
(
const
void
*
startup_data
,
size_t
startup_data_len
);
31
extern
void
PgArchWakeup
(
void
);
32
extern
void
PgArchForceDirScan
(
void
);
33
34
#endif
/* _PGARCH_H */
pg_noreturn
#define pg_noreturn
Definition
c.h:190
PgArchiverMain
pg_noreturn void PgArchiverMain(const void *startup_data, size_t startup_data_len)
Definition
pgarch.c:219
PgArchCanRestart
bool PgArchCanRestart(void)
Definition
pgarch.c:196
PgArchForceDirScan
void PgArchForceDirScan(void)
Definition
pgarch.c:805
PgArchWakeup
void PgArchWakeup(void)
Definition
pgarch.c:281
fb
static int fb(int x)
Definition
preproc-init.c:92
src
include
postmaster
pgarch.h
Generated on Sat Apr 11 2026 08:13:17 for PostgreSQL Source Code by
1.9.8