LCOV - differential code coverage report
Current view: top level - src/backend/access/rmgrdesc - seqdesc.c (source / functions) Coverage Total Hit UBC CBC
Current: d36b728949bf4e37ada1cd23e0f2aaa94f609a70 vs 52e118fe2f7e3381bdaa479816a7f72eda2ae517 Lines: 100.0 % 14 14 14
Current Date: 2026-06-29 16:15:13 +0200 Functions: 100.0 % 2 2 2
Baseline: lcov-20260630-baseline Branches: 50.0 % 4 2 2 2
Baseline Date: 2026-06-29 13:01:57 +0200 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-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/seqdesc.c
                                 12                 :                :  *
                                 13                 :                :  *-------------------------------------------------------------------------
                                 14                 :                :  */
                                 15                 :                : #include "postgres.h"
                                 16                 :                : 
                                 17                 :                : #include "commands/sequence_xlog.h"
                                 18                 :                : 
                                 19                 :                : 
                                 20                 :                : void
 4240 heikki.linnakangas@i       21                 :CBC         490 : seq_desc(StringInfo buf, XLogReaderState *record)
                                 22                 :                : {
 4399                            23                 :            490 :     char       *rec = XLogRecGetData(record);
 4240                            24                 :            490 :     uint8       info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
 4962 alvherre@alvh.no-ip.       25                 :            490 :     xl_seq_rec *xlrec = (xl_seq_rec *) rec;
                                 26                 :                : 
                                 27         [ +  - ]:            490 :     if (info == XLOG_SEQ_LOG)
 1371 rhaas@postgresql.org       28                 :            490 :         appendStringInfo(buf, "rel %u/%u/%u",
                                 29                 :                :                          xlrec->locator.spcOid, xlrec->locator.dbOid,
                                 30                 :                :                          xlrec->locator.relNumber);
 4302 andres@anarazel.de         31                 :            490 : }
                                 32                 :                : 
                                 33                 :                : const char *
                                 34                 :            493 : seq_identify(uint8 info)
                                 35                 :                : {
                                 36                 :            493 :     const char *id = NULL;
                                 37                 :                : 
 4299                            38         [ +  - ]:            493 :     switch (info & ~XLR_INFO_MASK)
                                 39                 :                :     {
 4302                            40                 :            493 :         case XLOG_SEQ_LOG:
                                 41                 :            493 :             id = "LOG";
                                 42                 :            493 :             break;
                                 43                 :                :     }
                                 44                 :                : 
                                 45                 :            493 :     return id;
                                 46                 :                : }
        

Generated by: LCOV version 2.0-1