LCOV - differential code coverage report
Current view: top level - src/backend/access/rmgrdesc - seqdesc.c (source / functions) Coverage Total Hit UBC CBC
Current: c70b6db34ffeab48beef1fb4ce61bcad3772b8dd vs 06473f5a344df8c9594ead90a609b86f6724cff8 Lines: 100.0 % 14 14 14
Current Date: 2025-09-06 07:49:51 +0900 Functions: 100.0 % 2 2 2
Baseline: lcov-20250906-005545-baseline Branches: 50.0 % 4 2 2 2
Baseline Date: 2025-09-05 08:21:35 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(360..) days: 100.0 % 14 14 14
Function coverage date bins:
(360..) days: 100.0 % 2 2 2
Branch coverage date bins:
(360..) days: 50.0 % 4 2 2 2

 Age         Owner                    Branch data    TLA  Line data    Source code
                                  1                 :                : /*-------------------------------------------------------------------------
                                  2                 :                :  *
                                  3                 :                :  * seqdesc.c
                                  4                 :                :  *    rmgr descriptor routines for commands/sequence.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/seqdesc.c
                                 12                 :                :  *
                                 13                 :                :  *-------------------------------------------------------------------------
                                 14                 :                :  */
                                 15                 :                : #include "postgres.h"
                                 16                 :                : 
                                 17                 :                : #include "commands/sequence.h"
                                 18                 :                : 
                                 19                 :                : 
                                 20                 :                : void
 3943 heikki.linnakangas@i       21                 :CBC          18 : seq_desc(StringInfo buf, XLogReaderState *record)
                                 22                 :                : {
 4102                            23                 :             18 :     char       *rec = XLogRecGetData(record);
 3943                            24                 :             18 :     uint8       info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
 4665 alvherre@alvh.no-ip.       25                 :             18 :     xl_seq_rec *xlrec = (xl_seq_rec *) rec;
                                 26                 :                : 
                                 27         [ +  - ]:             18 :     if (info == XLOG_SEQ_LOG)
 1074 rhaas@postgresql.org       28                 :             18 :         appendStringInfo(buf, "rel %u/%u/%u",
                                 29                 :                :                          xlrec->locator.spcOid, xlrec->locator.dbOid,
                                 30                 :                :                          xlrec->locator.relNumber);
 4005 andres@anarazel.de         31                 :             18 : }
                                 32                 :                : 
                                 33                 :                : const char *
                                 34                 :             19 : seq_identify(uint8 info)
                                 35                 :                : {
                                 36                 :             19 :     const char *id = NULL;
                                 37                 :                : 
 4002                            38         [ +  - ]:             19 :     switch (info & ~XLR_INFO_MASK)
                                 39                 :                :     {
 4005                            40                 :             19 :         case XLOG_SEQ_LOG:
                                 41                 :             19 :             id = "LOG";
                                 42                 :             19 :             break;
                                 43                 :                :     }
                                 44                 :                : 
                                 45                 :             19 :     return id;
                                 46                 :                : }
        

Generated by: LCOV version 2.4-beta