Header And Logo

PostgreSQL
| The world's most advanced open source database.

btree_gist.c

Go to the documentation of this file.
00001 /*
00002  * contrib/btree_gist/btree_gist.c
00003  */
00004 #include "postgres.h"
00005 
00006 #include "btree_gist.h"
00007 
00008 PG_MODULE_MAGIC;
00009 
00010 PG_FUNCTION_INFO_V1(gbt_decompress);
00011 PG_FUNCTION_INFO_V1(gbtreekey_in);
00012 PG_FUNCTION_INFO_V1(gbtreekey_out);
00013 
00014 Datum       gbt_decompress(PG_FUNCTION_ARGS);
00015 
00016 /**************************************************
00017  * In/Out for keys
00018  **************************************************/
00019 
00020 
00021 Datum
00022 gbtreekey_in(PG_FUNCTION_ARGS)
00023 {
00024     ereport(ERROR,
00025             (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
00026              errmsg("<datatype>key_in() not implemented")));
00027 
00028     PG_RETURN_POINTER(NULL);
00029 }
00030 
00031 #include "btree_utils_var.h"
00032 #include "utils/builtins.h"
00033 Datum
00034 gbtreekey_out(PG_FUNCTION_ARGS)
00035 {
00036     ereport(ERROR,
00037             (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
00038              errmsg("<datatype>key_out() not implemented")));
00039     PG_RETURN_POINTER(NULL);
00040 }
00041 
00042 
00043 /*
00044 ** GiST DeCompress methods
00045 ** do not do anything.
00046 */
00047 Datum
00048 gbt_decompress(PG_FUNCTION_ARGS)
00049 {
00050     PG_RETURN_POINTER(PG_GETARG_POINTER(0));
00051 }