LCOV - differential code coverage report
Current view: top level - src/backend/access/rmgrdesc - clogdesc.c (source / functions) Coverage Total Hit UBC
Current: 1a1248818fb8b8b0353c292c632d6a6af77e8209 vs 8e82d6610e7280d7870c0c36ff1c797e3cfb3e09 Lines: 0.0 % 20 0 20
Current Date: 2026-10-12 11:56:10 +0200 Functions: 0.0 % 2 0 2
Baseline: lcov-20261012-baseline Branches: 0.0 % 7 0 7
Baseline Date: 2026-10-12 10:36:06 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(360..) days: 0.0 % 20 0 20
Function coverage date bins:
(360..) days: 0.0 % 2 0 2
Branch coverage date bins:
(360..) days: 0.0 % 7 0 7

 Age         Owner                    Branch data    TLA  Line data    Source code
                                  1                 :                : /*-------------------------------------------------------------------------
                                  2                 :                :  *
                                  3                 :                :  * clogdesc.c
                                  4                 :                :  *    rmgr descriptor routines for access/transam/clog.c
                                  5                 :                :  *
                                  6                 :                :  * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
                                  7                 :                :  * Portions Copyright (c) 1994, Regents of the University of California
                                  8                 :                :  *
                                  9                 :                :  *
                                 10                 :                :  * IDENTIFICATION
                                 11                 :                :  *    src/backend/access/rmgrdesc/clogdesc.c
                                 12                 :                :  *
                                 13                 :                :  *-------------------------------------------------------------------------
                                 14                 :                :  */
                                 15                 :                : #include "postgres.h"
                                 16                 :                : 
                                 17                 :                : #include "access/clog.h"
                                 18                 :                : 
                                 19                 :                : 
                                 20                 :                : void
 4344 heikki.linnakangas@i       21                 :UBC           0 : clog_desc(StringInfo buf, XLogReaderState *record)
                                 22                 :                : {
 4503                            23                 :              0 :     char       *rec = XLogRecGetData(record);
 4344                            24                 :              0 :     uint8       info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
                                 25                 :                : 
 3490 rhaas@postgresql.org       26         [ #  # ]:              0 :     if (info == CLOG_ZEROPAGE)
                                 27                 :                :     {
                                 28                 :                :         int64       pageno;
                                 29                 :                : 
 1048 akorotkov@postgresql       30                 :              0 :         memcpy(&pageno, rec, sizeof(pageno));
  562 peter@eisentraut.org       31                 :              0 :         appendStringInfo(buf, "page %" PRId64, pageno);
                                 32                 :                :     }
 3490 rhaas@postgresql.org       33         [ #  # ]:              0 :     else if (info == CLOG_TRUNCATE)
                                 34                 :                :     {
                                 35                 :                :         xl_clog_truncate xlrec;
                                 36                 :                : 
                                 37                 :              0 :         memcpy(&xlrec, rec, sizeof(xl_clog_truncate));
  562 peter@eisentraut.org       38                 :              0 :         appendStringInfo(buf, "page %" PRId64 "; oldestXact %u",
                                 39                 :                :                          xlrec.pageno, xlrec.oldestXact);
                                 40                 :                :     }
 4406 andres@anarazel.de         41                 :              0 : }
                                 42                 :                : 
                                 43                 :                : const char *
                                 44                 :              0 : clog_identify(uint8 info)
                                 45                 :                : {
                                 46                 :              0 :     const char *id = NULL;
                                 47                 :                : 
 4403                            48      [ #  #  # ]:              0 :     switch (info & ~XLR_INFO_MASK)
                                 49                 :                :     {
 4406                            50                 :              0 :         case CLOG_ZEROPAGE:
                                 51                 :              0 :             id = "ZEROPAGE";
                                 52                 :              0 :             break;
                                 53                 :              0 :         case CLOG_TRUNCATE:
                                 54                 :              0 :             id = "TRUNCATE";
                                 55                 :              0 :             break;
                                 56                 :                :     }
                                 57                 :                : 
                                 58                 :              0 :     return id;
                                 59                 :                : }
        

Generated by: LCOV version 2.0-1