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 17:13:01 Functions: 71.4 % 7 5 1 1 1 4 1 1
Baseline: 15 Line coverage date bins:
Baseline Date: 2023-04-08 15:09:40 (60,120] days: 0.0 % 1 0 1
Legend: Lines: hit not hit (240..) days: 60.0 % 10 6 1 3 2 4
Function coverage date bins:
(240..) days: 62.5 % 8 5 1 1 1 4 1

 Age         Owner                  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                 : 
 6158 tgl                         8 CBC          29 : PG_MODULE_MAGIC;
                                  9                 : 
 6890 teodor                     10              21 : PG_FUNCTION_INFO_V1(gbt_decompress);
 6797 bruce                      11               6 : PG_FUNCTION_INFO_V1(gbtreekey_in);
 6890 teodor                     12               6 : PG_FUNCTION_INFO_V1(gbtreekey_out);
                                 13                 : 
                                 14                 : /**************************************************
                                 15                 :  * In/Out for keys
                                 16                 :  **************************************************/
                                 17                 : 
                                 18                 : 
                                 19                 : Datum
 6890 teodor                     20 UBC           0 : gbtreekey_in(PG_FUNCTION_ARGS)
                                 21                 : {
  120 tgl                        22 UNC           0 :     Oid         typioparam = PG_GETARG_OID(1);
                                 23                 : 
 6797 bruce                      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
 6890 teodor                     34 UIC           0 : gbtreekey_out(PG_FUNCTION_ARGS)
                                 35                 : {
                                 36                 :     /* Sadly, we do not receive any indication of the specific type */
 6797 bruce                      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
 6890 teodor                     50 GIC      111548 : gbt_decompress(PG_FUNCTION_ARGS)
                                 51                 : {
 6797 bruce                      52          111548 :     PG_RETURN_POINTER(PG_GETARG_POINTER(0));
                                 53                 : }
        

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