PostgreSQL Source Code  git master
btree_gist.c
Go to the documentation of this file.
1 /*
2  * contrib/btree_gist/btree_gist.c
3  */
4 #include "postgres.h"
5 
6 #include "utils/builtins.h"
7 
9 
13 
14 /**************************************************
15  * In/Out for keys
16  **************************************************/
17 
18 
19 Datum
21 {
22  Oid typioparam = PG_GETARG_OID(1);
23 
24  ereport(ERROR,
25  (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
26  errmsg("cannot accept a value of type %s",
27  format_type_extended(typioparam, -1,
29 
30  PG_RETURN_VOID(); /* keep compiler quiet */
31 }
32 
33 Datum
35 {
36  /* Sadly, we do not receive any indication of the specific type */
37  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
51 {
53 }
Datum gbt_decompress(PG_FUNCTION_ARGS)
Definition: btree_gist.c:50
Datum gbtreekey_out(PG_FUNCTION_ARGS)
Definition: btree_gist.c:34
PG_MODULE_MAGIC
Definition: btree_gist.c:8
PG_FUNCTION_INFO_V1(gbt_decompress)
Datum gbtreekey_in(PG_FUNCTION_ARGS)
Definition: btree_gist.c:20
#define FORMAT_TYPE_ALLOW_INVALID
Definition: builtins.h:125
int errcode(int sqlerrcode)
Definition: elog.c:857
int errmsg(const char *fmt,...)
Definition: elog.c:1070
#define ERROR
Definition: elog.h:39
#define ereport(elevel,...)
Definition: elog.h:149
#define PG_RETURN_VOID()
Definition: fmgr.h:349
#define PG_GETARG_OID(n)
Definition: fmgr.h:275
#define PG_GETARG_POINTER(n)
Definition: fmgr.h:276
#define PG_RETURN_POINTER(x)
Definition: fmgr.h:361
#define PG_FUNCTION_ARGS
Definition: fmgr.h:193
char * format_type_extended(Oid type_oid, int32 typemod, bits16 flags)
Definition: format_type.c:112
uintptr_t Datum
Definition: postgres.h:64
unsigned int Oid
Definition: postgres_ext.h:31