LCOV - differential code coverage report
Current view: top level - src/include/utils - pg_lsn.h (source / functions) Coverage Total Hit CBC
Current: 7a15cff1f11193467898da1c1fabf06fd2caee04 vs 84a3778c79c2d28b4dc281d03ef2ab019b16483b Lines: 100.0 % 4 4 4
Current Date: 2025-12-15 18:36:29 -0500 Functions: 100.0 % 2 2 2
Baseline: lcov-20251216-010103-baseline Line coverage date bins:
Baseline Date: 2025-12-15 13:30:48 -0800 (360..) days: 100.0 % 4 4 4
Legend: Lines:     hit not hit Function coverage date bins:
(360..) days: 100.0 % 2 2 2

 Age         Owner                  TLA  Line data    Source code
                                  1                 : /*-------------------------------------------------------------------------
                                  2                 :  *
                                  3                 :  * pg_lsn.h
                                  4                 :  *      Declarations for operations on log sequence numbers (LSNs) of
                                  5                 :  *      PostgreSQL.
                                  6                 :  *
                                  7                 :  *
                                  8                 :  * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
                                  9                 :  * Portions Copyright (c) 1994, Regents of the University of California
                                 10                 :  *
                                 11                 :  * src/include/utils/pg_lsn.h
                                 12                 :  *
                                 13                 :  *-------------------------------------------------------------------------
                                 14                 :  */
                                 15                 : #ifndef PG_LSN_H
                                 16                 : #define PG_LSN_H
                                 17                 : 
                                 18                 : #include "access/xlogdefs.h"
                                 19                 : #include "fmgr.h"
                                 20                 : 
                                 21                 : /* forward declaration to avoid node.h include */
                                 22                 : typedef struct Node Node;
                                 23                 : 
                                 24                 : static inline XLogRecPtr
 1176 peter@eisentraut.org       25 CBC      214200 : DatumGetLSN(Datum X)
                                 26                 : {
                                 27          214200 :     return (XLogRecPtr) DatumGetInt64(X);
                                 28                 : }
                                 29                 : 
                                 30                 : static inline Datum
                                 31          266521 : LSNGetDatum(XLogRecPtr X)
                                 32                 : {
                                 33          266521 :     return Int64GetDatum((int64) X);
                                 34                 : }
                                 35                 : 
                                 36                 : #define PG_GETARG_LSN(n)     DatumGetLSN(PG_GETARG_DATUM(n))
                                 37                 : #define PG_RETURN_LSN(x)     return LSNGetDatum(x)
                                 38                 : 
                                 39                 : extern XLogRecPtr pg_lsn_in_safe(const char *str, Node *escontext);
                                 40                 : 
                                 41                 : #endif                          /* PG_LSN_H */
        

Generated by: LCOV version 2.4-beta