PostgreSQL Source Code  git master
btree_gist.c File Reference
#include "postgres.h"
#include "access/stratnum.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 52 of file btree_gist.c.

53 {
55 }
#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 22 of file btree_gist.c.

23 {
24  Oid typioparam = PG_GETARG_OID(1);
25 
26  ereport(ERROR,
27  (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
28  errmsg("cannot accept a value of type %s",
29  format_type_extended(typioparam, -1,
31 
32  PG_RETURN_VOID(); /* keep compiler quiet */
33 }
#define FORMAT_TYPE_ALLOW_INVALID
Definition: builtins.h:125
int errcode(int sqlerrcode)
Definition: elog.c:859
int errmsg(const char *fmt,...)
Definition: elog.c:1072
#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 36 of file btree_gist.c.

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

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

◆ gist_stratnum_btree()

Datum gist_stratnum_btree ( PG_FUNCTION_ARGS  )

Definition at line 61 of file btree_gist.c.

62 {
64 
65  switch (strat)
66  {
77  default:
79  }
80 }
#define PG_GETARG_UINT16(n)
Definition: fmgr.h:272
#define PG_RETURN_UINT16(x)
Definition: fmgr.h:357
uint16 StrategyNumber
Definition: stratnum.h:22
#define BTGreaterStrategyNumber
Definition: stratnum.h:33
#define RTEqualStrategyNumber
Definition: stratnum.h:68
#define InvalidStrategy
Definition: stratnum.h:24
#define RTLessEqualStrategyNumber
Definition: stratnum.h:71
#define RTGreaterEqualStrategyNumber
Definition: stratnum.h:73
#define RTGreaterStrategyNumber
Definition: stratnum.h:72
#define BTLessStrategyNumber
Definition: stratnum.h:29
#define BTEqualStrategyNumber
Definition: stratnum.h:31
#define BTLessEqualStrategyNumber
Definition: stratnum.h:30
#define BTGreaterEqualStrategyNumber
Definition: stratnum.h:32
#define RTLessStrategyNumber
Definition: stratnum.h:70

References BTEqualStrategyNumber, BTGreaterEqualStrategyNumber, BTGreaterStrategyNumber, BTLessEqualStrategyNumber, BTLessStrategyNumber, InvalidStrategy, PG_GETARG_UINT16, PG_RETURN_UINT16, RTEqualStrategyNumber, RTGreaterEqualStrategyNumber, RTGreaterStrategyNumber, RTLessEqualStrategyNumber, and RTLessStrategyNumber.

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