LCOV - differential code coverage report
Current view: top level - src/backend/access/rmgrdesc - committsdesc.c (source / functions) Coverage Total Hit UBC
Current: c70b6db34ffeab48beef1fb4ce61bcad3772b8dd vs 06473f5a344df8c9594ead90a609b86f6724cff8 Lines: 0.0 % 18 0 18
Current Date: 2025-09-06 07:49:51 +0900 Functions: 0.0 % 2 0 2
Baseline: lcov-20250906-005545-baseline Branches: 0.0 % 7 0 7
Baseline Date: 2025-09-05 08:21:35 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 0.0 % 2 0 2
(360..) days: 0.0 % 16 0 16
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                 :                :  * committsdesc.c
                                  4                 :                :  *    rmgr descriptor routines for access/transam/commit_ts.c
                                  5                 :                :  *
                                  6                 :                :  * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
                                  7                 :                :  * Portions Copyright (c) 1994, Regents of the University of California
                                  8                 :                :  *
                                  9                 :                :  *
                                 10                 :                :  * IDENTIFICATION
                                 11                 :                :  *    src/backend/access/rmgrdesc/committsdesc.c
                                 12                 :                :  *
                                 13                 :                :  *-------------------------------------------------------------------------
                                 14                 :                :  */
                                 15                 :                : #include "postgres.h"
                                 16                 :                : 
                                 17                 :                : #include "access/commit_ts.h"
                                 18                 :                : 
                                 19                 :                : 
                                 20                 :                : void
 3930 alvherre@alvh.no-ip.       21                 :UBC           0 : commit_ts_desc(StringInfo buf, XLogReaderState *record)
                                 22                 :                : {
                                 23                 :              0 :     char       *rec = XLogRecGetData(record);
                                 24                 :              0 :     uint8       info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
                                 25                 :                : 
                                 26         [ #  # ]:              0 :     if (info == COMMIT_TS_ZEROPAGE)
                                 27                 :                :     {
                                 28                 :                :         int64       pageno;
                                 29                 :                : 
  647 akorotkov@postgresql       30                 :              0 :         memcpy(&pageno, rec, sizeof(pageno));
  161 peter@eisentraut.org       31                 :              0 :         appendStringInfo(buf, "%" PRId64, pageno);
                                 32                 :                :     }
 3930 alvherre@alvh.no-ip.       33         [ #  # ]:              0 :     else if (info == COMMIT_TS_TRUNCATE)
                                 34                 :                :     {
 3152                            35                 :              0 :         xl_commit_ts_truncate *trunc = (xl_commit_ts_truncate *) rec;
                                 36                 :                : 
  161 peter@eisentraut.org       37                 :              0 :         appendStringInfo(buf, "pageno %" PRId64 ", oldestXid %u",
                                 38                 :                :                          trunc->pageno, trunc->oldestXid);
                                 39                 :                :     }
 3930 alvherre@alvh.no-ip.       40                 :              0 : }
                                 41                 :                : 
                                 42                 :                : const char *
                                 43                 :              0 : commit_ts_identify(uint8 info)
                                 44                 :                : {
                                 45      [ #  #  # ]:              0 :     switch (info)
                                 46                 :                :     {
                                 47                 :              0 :         case COMMIT_TS_ZEROPAGE:
                                 48                 :              0 :             return "ZEROPAGE";
                                 49                 :              0 :         case COMMIT_TS_TRUNCATE:
                                 50                 :              0 :             return "TRUNCATE";
                                 51                 :              0 :         default:
                                 52                 :              0 :             return NULL;
                                 53                 :                :     }
                                 54                 :                : }
        

Generated by: LCOV version 2.4-beta