LCOV - code coverage report
Current view: top level - contrib/btree_gist - btree_gist.c (source / functions) Hit Total Coverage
Test: PostgreSQL 12beta2 Lines: 6 10 60.0 %
Date: 2019-06-19 14:06:47 Functions: 5 7 71.4 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * contrib/btree_gist/btree_gist.c
       3             :  */
       4             : #include "postgres.h"
       5             : 
       6             : #include "btree_gist.h"
       7             : 
       8          56 : PG_MODULE_MAGIC;
       9             : 
      10          40 : PG_FUNCTION_INFO_V1(gbt_decompress);
      11          10 : PG_FUNCTION_INFO_V1(gbtreekey_in);
      12          10 : PG_FUNCTION_INFO_V1(gbtreekey_out);
      13             : 
      14             : /**************************************************
      15             :  * In/Out for keys
      16             :  **************************************************/
      17             : 
      18             : 
      19             : Datum
      20           0 : gbtreekey_in(PG_FUNCTION_ARGS)
      21             : {
      22           0 :     ereport(ERROR,
      23             :             (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
      24             :              errmsg("<datatype>key_in() not implemented")));
      25             : 
      26             :     PG_RETURN_POINTER(NULL);
      27             : }
      28             : 
      29             : #include "btree_utils_var.h"
      30             : #include "utils/builtins.h"
      31             : Datum
      32           0 : gbtreekey_out(PG_FUNCTION_ARGS)
      33             : {
      34           0 :     ereport(ERROR,
      35             :             (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
      36             :              errmsg("<datatype>key_out() not implemented")));
      37             :     PG_RETURN_POINTER(NULL);
      38             : }
      39             : 
      40             : 
      41             : /*
      42             : ** GiST DeCompress methods
      43             : ** do not do anything.
      44             : */
      45             : Datum
      46      222454 : gbt_decompress(PG_FUNCTION_ARGS)
      47             : {
      48      222454 :     PG_RETURN_POINTER(PG_GETARG_POINTER(0));
      49             : }

Generated by: LCOV version 1.13