1 /* 2 * contrib/btree_gist/btree_gist.c 3 */ 4 #include "postgres.h" 5 6 #include "btree_gist.h" 7 8 PG_MODULE_MAGIC; 9 10 PG_FUNCTION_INFO_V1(gbt_decompress); 11 PG_FUNCTION_INFO_V1(gbtreekey_in); 12 PG_FUNCTION_INFO_V1(gbtreekey_out); 13 14 /************************************************** 15 * In/Out for keys 16 **************************************************/ 17 18 19 Datum gbtreekey_in(PG_FUNCTION_ARGS)20gbtreekey_in(PG_FUNCTION_ARGS) 21 { 22 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 gbtreekey_out(PG_FUNCTION_ARGS)32gbtreekey_out(PG_FUNCTION_ARGS) 33 { 34 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 gbt_decompress(PG_FUNCTION_ARGS)46gbt_decompress(PG_FUNCTION_ARGS) 47 { 48 PG_RETURN_POINTER(PG_GETARG_POINTER(0)); 49 } 50