Age Owner TLA Line data Source code
1 : /*
2 : * contrib/btree_gist/btree_gist.c
3 : */
4 : #include "postgres.h"
5 :
6 : #include "utils/builtins.h"
7 :
6158 tgl 8 CBC 29 : PG_MODULE_MAGIC;
9 :
6890 teodor 10 21 : PG_FUNCTION_INFO_V1(gbt_decompress);
6797 bruce 11 6 : PG_FUNCTION_INFO_V1(gbtreekey_in);
6890 teodor 12 6 : PG_FUNCTION_INFO_V1(gbtreekey_out);
13 :
14 : /**************************************************
15 : * In/Out for keys
16 : **************************************************/
17 :
18 :
19 : Datum
6890 teodor 20 UBC 0 : gbtreekey_in(PG_FUNCTION_ARGS)
21 : {
120 tgl 22 UNC 0 : Oid typioparam = PG_GETARG_OID(1);
23 :
6797 bruce 24 UBC 0 : ereport(ERROR,
25 : (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
26 : errmsg("cannot accept a value of type %s",
27 : format_type_extended(typioparam, -1,
28 : FORMAT_TYPE_ALLOW_INVALID))));
29 :
30 : PG_RETURN_VOID(); /* keep compiler quiet */
31 : }
32 :
33 : Datum
6890 teodor 34 UIC 0 : gbtreekey_out(PG_FUNCTION_ARGS)
35 : {
36 : /* Sadly, we do not receive any indication of the specific type */
6797 bruce 37 UBC 0 : 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
6890 teodor 50 GIC 111548 : gbt_decompress(PG_FUNCTION_ARGS)
51 : {
6797 bruce 52 111548 : PG_RETURN_POINTER(PG_GETARG_POINTER(0));
53 : }
|