LCOV - differential code coverage report
Current view: top level - src/backend/catalog - pg_class.c (source / functions) Coverage Total Hit UIC UBC GBC GNC CBC
Current: bed3ffbf9d952be6c7d739d068cdce44c046dfb7 vs 574581b50ac9c63dd9e4abebb731a3b67e5b50f6 Lines: 92.3 % 26 24 2 2 22
Current Date: 2026-05-05 10:23:31 +0900 Functions: 100.0 % 1 1 1
Baseline: lcov-20260505-025707-baseline Branches: 78.6 % 14 11 1 2 1 10
Baseline Date: 2026-05-05 10:27:06 +0900 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 100.0 % 2 2 2
(360..) days: 91.7 % 24 22 2 22
Function coverage date bins:
(360..) days: 100.0 % 1 1 1
Branch coverage date bins:
(360..) days: 78.6 % 14 11 1 2 1 10

 Age         Owner                    Branch data    TLA  Line data    Source code
                                  1                 :                : /*-------------------------------------------------------------------------
                                  2                 :                :  *
                                  3                 :                :  * pg_class.c
                                  4                 :                :  *    routines to support manipulation of the pg_class relation
                                  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/catalog/pg_class.c
                                 12                 :                :  *
                                 13                 :                :  *-------------------------------------------------------------------------
                                 14                 :                :  */
                                 15                 :                : #include "postgres.h"
                                 16                 :                : 
                                 17                 :                : #include "catalog/pg_class.h"
                                 18                 :                : 
                                 19                 :                : /*
                                 20                 :                :  * Issue an errdetail() informing that the relkind is not supported for this
                                 21                 :                :  * operation.
                                 22                 :                :  */
                                 23                 :                : int
 1762 peter@eisentraut.org       24                 :CBC         205 : errdetail_relkind_not_supported(char relkind)
                                 25                 :                : {
                                 26   [ +  +  +  +  :            205 :     switch (relkind)
                                     +  +  +  +  +  
                                           +  +  - ]
                                 27                 :                :     {
                                 28                 :             28 :         case RELKIND_RELATION:
                                 29                 :             28 :             return errdetail("This operation is not supported for tables.");
                                 30                 :             22 :         case RELKIND_INDEX:
                                 31                 :             22 :             return errdetail("This operation is not supported for indexes.");
                                 32                 :             22 :         case RELKIND_SEQUENCE:
                                 33                 :             22 :             return errdetail("This operation is not supported for sequences.");
                                 34                 :              5 :         case RELKIND_TOASTVALUE:
                                 35                 :              5 :             return errdetail("This operation is not supported for TOAST tables.");
                                 36                 :             39 :         case RELKIND_VIEW:
                                 37                 :             39 :             return errdetail("This operation is not supported for views.");
                                 38                 :              4 :         case RELKIND_MATVIEW:
                                 39                 :              4 :             return errdetail("This operation is not supported for materialized views.");
                                 40                 :              4 :         case RELKIND_COMPOSITE_TYPE:
                                 41                 :              4 :             return errdetail("This operation is not supported for composite types.");
                                 42                 :             19 :         case RELKIND_FOREIGN_TABLE:
                                 43                 :             19 :             return errdetail("This operation is not supported for foreign tables.");
                                 44                 :             39 :         case RELKIND_PARTITIONED_TABLE:
                                 45                 :             39 :             return errdetail("This operation is not supported for partitioned tables.");
                                 46                 :             11 :         case RELKIND_PARTITIONED_INDEX:
                                 47                 :             11 :             return errdetail("This operation is not supported for partitioned indexes.");
   50 peter@eisentraut.org       48                 :GNC          12 :         case RELKIND_PROPGRAPH:
                                 49                 :             12 :             return errdetail("This operation is not supported for property graphs.");
 1762 peter@eisentraut.org       50                 :UBC           0 :         default:
                                 51         [ #  # ]:              0 :             elog(ERROR, "unrecognized relkind: '%c'", relkind);
                                 52                 :                :             return 0;
                                 53                 :                :     }
                                 54                 :                : }
        

Generated by: LCOV version 2.5.0-beta