PostgreSQL Source Code  git master
btree_gist.c File Reference
#include "postgres.h"
#include "utils/builtins.h"
Include dependency graph for btree_gist.c:

Go to the source code of this file.

Functions

 PG_FUNCTION_INFO_V1 (gbt_decompress)
 
 PG_FUNCTION_INFO_V1 (gbtreekey_in)
 
 PG_FUNCTION_INFO_V1 (gbtreekey_out)
 
Datum gbtreekey_in (PG_FUNCTION_ARGS)
 
Datum gbtreekey_out (PG_FUNCTION_ARGS)
 
Datum gbt_decompress (PG_FUNCTION_ARGS)
 

Variables

 PG_MODULE_MAGIC
 

Function Documentation

◆ gbt_decompress()

Datum gbt_decompress ( PG_FUNCTION_ARGS  )

Definition at line 50 of file btree_gist.c.

51 {
53 }
#define PG_GETARG_POINTER(n)
Definition: fmgr.h:276
#define PG_RETURN_POINTER(x)
Definition: fmgr.h:361

References PG_GETARG_POINTER, and PG_RETURN_POINTER.

◆ gbtreekey_in()

Datum gbtreekey_in ( PG_FUNCTION_ARGS  )

Definition at line 20 of file btree_gist.c.

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 }
#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
char * format_type_extended(Oid type_oid, int32 typemod, bits16 flags)
Definition: format_type.c:112
unsigned int Oid
Definition: postgres_ext.h:31

References ereport, errcode(), errmsg(), ERROR, FORMAT_TYPE_ALLOW_INVALID, format_type_extended(), PG_GETARG_OID, and PG_RETURN_VOID.

◆ gbtreekey_out()

Datum gbtreekey_out ( PG_FUNCTION_ARGS  )

Definition at line 34 of file btree_gist.c.

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 }

References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.

◆ PG_FUNCTION_INFO_V1() [1/3]

PG_FUNCTION_INFO_V1 ( gbt_decompress  )

◆ PG_FUNCTION_INFO_V1() [2/3]

PG_FUNCTION_INFO_V1 ( gbtreekey_in  )

◆ PG_FUNCTION_INFO_V1() [3/3]

PG_FUNCTION_INFO_V1 ( gbtreekey_out  )

Variable Documentation

◆ PG_MODULE_MAGIC

PG_MODULE_MAGIC

Definition at line 8 of file btree_gist.c.