Line data Source code
1 : pub const XLOG_DBASE_CREATE: u8 = 0x00;
2 : pub const XLOG_DBASE_DROP: u8 = 0x10;
3 :
4 : pub const BKPIMAGE_IS_COMPRESSED: u8 = 0x02; /* page image is compressed */
5 : pub const BKPIMAGE_APPLY: u8 = 0x04; /* page image should be restored during replay */
6 : pub const SIZEOF_RELMAPFILE: usize = 512; /* sizeof(RelMapFile) in relmapper.c */
7 :
8 : // List of subdirectories inside pgdata.
9 : // Copied from src/bin/initdb/initdb.c
10 : pub const PGDATA_SUBDIRS: [&str; 22] = [
11 : "global",
12 : "pg_wal/archive_status",
13 : "pg_commit_ts",
14 : "pg_dynshmem",
15 : "pg_notify",
16 : "pg_serial",
17 : "pg_snapshots",
18 : "pg_subtrans",
19 : "pg_twophase",
20 : "pg_multixact",
21 : "pg_multixact/members",
22 : "pg_multixact/offsets",
23 : "base",
24 : "base/1",
25 : "pg_replslot",
26 : "pg_tblspc",
27 : "pg_stat",
28 : "pg_stat_tmp",
29 : "pg_xact",
30 : "pg_logical",
31 : "pg_logical/snapshots",
32 : "pg_logical/mappings",
33 : ];
34 :
35 0 : pub fn bkpimg_is_compressed(bimg_info: u8) -> bool {
36 0 : (bimg_info & BKPIMAGE_IS_COMPRESSED) != 0
37 0 : }
|