LCOV - code coverage report
Current view: top level - libs/postgres_ffi/src - pg_constants_v14.rs (source / functions) Coverage Total Hit
Test: 09e7485004805bd42b53a0c369170b3228136512.info Lines: 0.0 % 3 0
Test Date: 2024-11-21 18:36:18 Functions: 0.0 % 1 0

            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 : }
        

Generated by: LCOV version 2.1-beta