LCOV - differential code coverage report
Current view: top level - src/backend/access/rmgrdesc - relmapdesc.c (source / functions) Coverage Total Hit UBC
Current: Differential Code Coverage HEAD vs 15 Lines: 0.0 % 14 0 14
Current Date: 2023-04-08 15:15:32 Functions: 0.0 % 2 0 2
Baseline: 15
Baseline Date: 2023-04-08 15:09:40
Legend: Lines: hit not hit

           TLA  Line data    Source code
       1                 : /*-------------------------------------------------------------------------
       2                 :  *
       3                 :  * relmapdesc.c
       4                 :  *    rmgr descriptor routines for utils/cache/relmapper.c
       5                 :  *
       6                 :  * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
       7                 :  * Portions Copyright (c) 1994, Regents of the University of California
       8                 :  *
       9                 :  *
      10                 :  * IDENTIFICATION
      11                 :  *    src/backend/access/rmgrdesc/relmapdesc.c
      12                 :  *
      13                 :  *-------------------------------------------------------------------------
      14                 :  */
      15                 : #include "postgres.h"
      16                 : 
      17                 : #include "utils/relmapper.h"
      18                 : 
      19                 : void
      20 UBC           0 : relmap_desc(StringInfo buf, XLogReaderState *record)
      21                 : {
      22               0 :     char       *rec = XLogRecGetData(record);
      23               0 :     uint8       info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
      24                 : 
      25               0 :     if (info == XLOG_RELMAP_UPDATE)
      26                 :     {
      27               0 :         xl_relmap_update *xlrec = (xl_relmap_update *) rec;
      28                 : 
      29               0 :         appendStringInfo(buf, "database %u tablespace %u size %d",
      30                 :                          xlrec->dbid, xlrec->tsid, xlrec->nbytes);
      31                 :     }
      32               0 : }
      33                 : 
      34                 : const char *
      35               0 : relmap_identify(uint8 info)
      36                 : {
      37               0 :     const char *id = NULL;
      38                 : 
      39               0 :     switch (info & ~XLR_INFO_MASK)
      40                 :     {
      41               0 :         case XLOG_RELMAP_UPDATE:
      42               0 :             id = "UPDATE";
      43               0 :             break;
      44                 :     }
      45                 : 
      46               0 :     return id;
      47                 : }
        

Generated by: LCOV version v1.16-55-g56c0a2a