LCOV - code coverage report
Current view: top level - libs/postgres_ffi/src - pg_constants_v17.rs (source / functions) Coverage Total Hit
Test: b9d67f908f91f00e353a27440ba89f642a869959.info Lines: 0.0 % 3 0
Test Date: 2024-11-19 21:44:13 Functions: 0.0 % 1 0

            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 = 524; /* sizeof(RelMapFile) in relmapper.c */
      13              : 
      14              : // List of subdirectories inside pgdata.
      15              : // Copied from src/bin/initdb/initdb.c
      16              : pub const PGDATA_SUBDIRS: [&str; 23] = [
      17              :     "global",
      18              :     "pg_wal/archive_status",
      19              :     "pg_wal/summaries",
      20              :     "pg_commit_ts",
      21              :     "pg_dynshmem",
      22              :     "pg_notify",
      23              :     "pg_serial",
      24              :     "pg_snapshots",
      25              :     "pg_subtrans",
      26              :     "pg_twophase",
      27              :     "pg_multixact",
      28              :     "pg_multixact/members",
      29              :     "pg_multixact/offsets",
      30              :     "base",
      31              :     "base/1",
      32              :     "pg_replslot",
      33              :     "pg_tblspc",
      34              :     "pg_stat",
      35              :     "pg_stat_tmp",
      36              :     "pg_xact",
      37              :     "pg_logical",
      38              :     "pg_logical/snapshots",
      39              :     "pg_logical/mappings",
      40              : ];
      41              : 
      42            0 : pub fn bkpimg_is_compressed(bimg_info: u8) -> bool {
      43              :     const ANY_COMPRESS_FLAG: u8 = BKPIMAGE_COMPRESS_PGLZ | BKPIMAGE_COMPRESS_LZ4 | BKPIMAGE_COMPRESS_ZSTD;
      44              : 
      45            0 :     (bimg_info & ANY_COMPRESS_FLAG) != 0
      46            0 : }
      47              : 
      48              : 
      49              : pub const XLOG_HEAP2_PRUNE_ON_ACCESS: u8 = 0x10;
      50              : pub const XLOG_HEAP2_PRUNE_VACUUM_SCAN: u8 = 0x20;
      51              : pub const XLOG_HEAP2_PRUNE_VACUUM_CLEANUP: u8 = 0x30;
      52              : 
      53              : 
      54              : pub const XLOG_OVERWRITE_CONTRECORD: u8 = 0xD0;
      55              : pub const XLOG_CHECKPOINT_REDO: u8 = 0xE0;
        

Generated by: LCOV version 2.1-beta