PostgreSQL Source Code git master
btree_gist.c File Reference
#include "postgres.h"
#include "access/stratnum.h"
#include "nodes/primnodes.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)
 
 PG_FUNCTION_INFO_V1 (gist_stratnum_btree)
 
Datum gbtreekey_in (PG_FUNCTION_ARGS)
 
Datum gbtreekey_out (PG_FUNCTION_ARGS)
 
Datum gbt_decompress (PG_FUNCTION_ARGS)
 
Datum gist_stratnum_btree (PG_FUNCTION_ARGS)
 

Variables

 PG_MODULE_MAGIC
 

Function Documentation

◆ gbt_decompress()

Datum gbt_decompress ( PG_FUNCTION_ARGS  )

Definition at line 53 of file btree_gist.c.

54{
56}
#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 23 of file btree_gist.c.

24{
25 Oid typioparam = PG_GETARG_OID(1);
26
28 (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
29 errmsg("cannot accept a value of type %s",
30 format_type_extended(typioparam, -1,
32
33 PG_RETURN_VOID(); /* keep compiler quiet */
34}
#define FORMAT_TYPE_ALLOW_INVALID
Definition: builtins.h:125
int errcode(int sqlerrcode)
Definition: elog.c:853
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:32

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 37 of file btree_gist.c.

38{
39 /* Sadly, we do not receive any indication of the specific type */
41 (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
42 errmsg("cannot display a value of type %s", "gbtreekey?")));
43
44 PG_RETURN_VOID(); /* keep compiler quiet */
45}

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

◆ gist_stratnum_btree()

Datum gist_stratnum_btree ( PG_FUNCTION_ARGS  )

Definition at line 62 of file btree_gist.c.

63{
64 CompareType cmptype = PG_GETARG_INT32(0);
65
66 switch (cmptype)
67 {
68 case COMPARE_EQ:
70 case COMPARE_LT:
72 case COMPARE_LE:
74 case COMPARE_GT:
76 case COMPARE_GE:
78 default:
80 }
81}
#define PG_GETARG_INT32(n)
Definition: fmgr.h:269
#define PG_RETURN_UINT16(x)
Definition: fmgr.h:357
CompareType
Definition: primnodes.h:1470
@ COMPARE_LE
Definition: primnodes.h:1472
@ COMPARE_GT
Definition: primnodes.h:1475
@ COMPARE_EQ
Definition: primnodes.h:1473
@ COMPARE_GE
Definition: primnodes.h:1474
@ COMPARE_LT
Definition: primnodes.h:1471
#define BTGreaterStrategyNumber
Definition: stratnum.h:33
#define InvalidStrategy
Definition: stratnum.h:24
#define BTLessStrategyNumber
Definition: stratnum.h:29
#define BTEqualStrategyNumber
Definition: stratnum.h:31
#define BTLessEqualStrategyNumber
Definition: stratnum.h:30
#define BTGreaterEqualStrategyNumber
Definition: stratnum.h:32

References BTEqualStrategyNumber, BTGreaterEqualStrategyNumber, BTGreaterStrategyNumber, BTLessEqualStrategyNumber, BTLessStrategyNumber, COMPARE_EQ, COMPARE_GE, COMPARE_GT, COMPARE_LE, COMPARE_LT, InvalidStrategy, PG_GETARG_INT32, and PG_RETURN_UINT16.

◆ PG_FUNCTION_INFO_V1() [1/4]

PG_FUNCTION_INFO_V1 ( gbt_decompress  )

◆ PG_FUNCTION_INFO_V1() [2/4]

PG_FUNCTION_INFO_V1 ( gbtreekey_in  )

◆ PG_FUNCTION_INFO_V1() [3/4]

PG_FUNCTION_INFO_V1 ( gbtreekey_out  )

◆ PG_FUNCTION_INFO_V1() [4/4]

PG_FUNCTION_INFO_V1 ( gist_stratnum_btree  )

Variable Documentation

◆ PG_MODULE_MAGIC

PG_MODULE_MAGIC

Definition at line 10 of file btree_gist.c.