LCOV - differential code coverage report
Current view: top level - contrib/btree_gist - btree_gist.c (source / functions) Coverage Total Hit UNC UIC UBC GIC CBC EUB ECB DUB
Current: Differential Code Coverage HEAD vs 15 Lines: 54.5 % 11 6 1 1 3 2 4 2 2
Current Date: 2023-04-08 15:15:32 Functions: 71.4 % 7 5 1 1 1 4 1 1
Baseline: 15
Baseline Date: 2023-04-08 15:09:40
Legend: Lines: hit not hit

           TLA  Line data    Source code
       1                 : /*
       2                 :  * contrib/btree_gist/btree_gist.c
       3                 :  */
       4                 : #include "postgres.h"
       5                 : 
       6                 : #include "utils/builtins.h"
       7                 : 
       8 CBC          29 : PG_MODULE_MAGIC;
       9                 : 
      10              21 : PG_FUNCTION_INFO_V1(gbt_decompress);
      11               6 : PG_FUNCTION_INFO_V1(gbtreekey_in);
      12               6 : PG_FUNCTION_INFO_V1(gbtreekey_out);
      13                 : 
      14                 : /**************************************************
      15                 :  * In/Out for keys
      16                 :  **************************************************/
      17                 : 
      18                 : 
      19                 : Datum
      20 UBC           0 : gbtreekey_in(PG_FUNCTION_ARGS)
      21                 : {
      22 UNC           0 :     Oid         typioparam = PG_GETARG_OID(1);
      23                 : 
      24 UBC           0 :     ereport(ERROR,
      25                 :             (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
      26                 :              errmsg("cannot accept a value of type %s",
      27                 :                     format_type_extended(typioparam, -1,
      28                 :                                          FORMAT_TYPE_ALLOW_INVALID))));
      29                 : 
      30                 :     PG_RETURN_VOID();           /* keep compiler quiet */
      31                 : }
      32                 : 
      33                 : Datum
      34 UIC           0 : gbtreekey_out(PG_FUNCTION_ARGS)
      35                 : {
      36                 :     /* Sadly, we do not receive any indication of the specific type */
      37 UBC           0 :     ereport(ERROR,
      38                 :             (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
      39                 :              errmsg("cannot display a value of type %s", "gbtreekey?")));
      40                 : 
      41                 :     PG_RETURN_VOID();           /* keep compiler quiet */
      42                 : }
      43                 : 
      44                 : 
      45                 : /*
      46                 : ** GiST DeCompress methods
      47                 : ** do not do anything.
      48                 : */
      49                 : Datum
      50 GIC      111548 : gbt_decompress(PG_FUNCTION_ARGS)
      51                 : {
      52          111548 :     PG_RETURN_POINTER(PG_GETARG_POINTER(0));
      53                 : }
        

Generated by: LCOV version v1.16-55-g56c0a2a