Line data Source code
1 : pub const XACT_XINFO_HAS_DROPPED_STATS: u32 = 1u32 << 8;
2 :
3 : pub const XLOG_DBASE_CREATE_FILE_COPY: u8 = 0x00;
4 : pub const XLOG_DBASE_CREATE_WAL_LOG: u8 = 0x10;
5 : pub const XLOG_DBASE_DROP: u8 = 0x20;
6 :
7 : pub const BKPIMAGE_APPLY: u8 = 0x02; /* page image should be restored during replay */
8 : pub const BKPIMAGE_COMPRESS_PGLZ: u8 = 0x04; /* page image is compressed */
9 : pub const BKPIMAGE_COMPRESS_LZ4: u8 = 0x08; /* page image is compressed */
10 : pub const BKPIMAGE_COMPRESS_ZSTD: u8 = 0x10; /* page image is compressed */
11 :
12 : pub const SIZEOF_RELMAPFILE: usize = 512; /* sizeof(RelMapFile) in relmapper.c */
13 :
14 : pub use super::super::v14::bindings::PGDATA_SUBDIRS;
15 :
16 108 : pub fn bkpimg_is_compressed(bimg_info: u8) -> bool {
17 : const ANY_COMPRESS_FLAG: u8 = BKPIMAGE_COMPRESS_PGLZ | BKPIMAGE_COMPRESS_LZ4 | BKPIMAGE_COMPRESS_ZSTD;
18 :
19 108 : (bimg_info & ANY_COMPRESS_FLAG) != 0
20 108 : }
|