PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | hstoreUpgrade hstoreUpgrade_p |
#define | hstoreUniquePairs hstoreUniquePairs_p |
#define | hstorePairs hstorePairs_p |
#define | hstoreCheckKeyLen hstoreCheckKeyLen_p |
#define | hstoreCheckValLen hstoreCheckValLen_p |
Typedefs | |
typedef HStore *(* | hstoreUpgrade_t) (Datum orig) |
typedef int(* | hstoreUniquePairs_t) (Pairs *a, int32 l, int32 *buflen) |
typedef HStore *(* | hstorePairs_t) (Pairs *pairs, int32 pcount, int32 buflen) |
typedef size_t(* | hstoreCheckKeyLen_t) (size_t len) |
typedef size_t(* | hstoreCheckValLen_t) (size_t len) |
Functions | |
void | _PG_init (void) |
PG_FUNCTION_INFO_V1 (hstore_to_plperl) | |
Datum | hstore_to_plperl (PG_FUNCTION_ARGS) |
PG_FUNCTION_INFO_V1 (plperl_to_hstore) | |
Datum | plperl_to_hstore (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
static hstoreUpgrade_t | hstoreUpgrade_p |
static hstoreUniquePairs_t | hstoreUniquePairs_p |
static hstorePairs_t | hstorePairs_p |
static hstoreCheckKeyLen_t | hstoreCheckKeyLen_p |
static hstoreCheckValLen_t | hstoreCheckValLen_p |
#define hstoreCheckKeyLen hstoreCheckKeyLen_p |
Definition at line 56 of file hstore_plperl.c.
#define hstoreCheckValLen hstoreCheckValLen_p |
Definition at line 57 of file hstore_plperl.c.
#define hstorePairs hstorePairs_p |
Definition at line 55 of file hstore_plperl.c.
#define hstoreUniquePairs hstoreUniquePairs_p |
Definition at line 54 of file hstore_plperl.c.
#define hstoreUpgrade hstoreUpgrade_p |
Definition at line 53 of file hstore_plperl.c.
typedef size_t(* hstoreCheckKeyLen_t) (size_t len) |
Definition at line 16 of file hstore_plperl.c.
typedef size_t(* hstoreCheckValLen_t) (size_t len) |
Definition at line 18 of file hstore_plperl.c.
Definition at line 14 of file hstore_plperl.c.
Definition at line 12 of file hstore_plperl.c.
Definition at line 10 of file hstore_plperl.c.
void _PG_init | ( | void | ) |
Definition at line 26 of file hstore_plperl.c.
References AssertVariableIsOfType, hstoreCheckKeyLen, hstoreCheckKeyLen_p, hstoreCheckValLen, hstoreCheckValLen_p, hstorePairs, hstorePairs_p, hstoreUniquePairs, hstoreUniquePairs_p, hstoreUpgrade, hstoreUpgrade_p, and load_external_function().
Datum hstore_to_plperl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 63 of file hstore_plperl.c.
References ARRPTR, cstr2sv(), dTHX, HS_COUNT, HSTORE_KEY, HSTORE_KEYLEN, HSTORE_VAL, HSTORE_VALISNULL, HSTORE_VALLEN, i, sort-test::key, PG_GETARG_HSTORE_P, pnstrdup(), PointerGetDatum(), STRPTR, and value.
PG_FUNCTION_INFO_V1 | ( | hstore_to_plperl | ) |
PG_FUNCTION_INFO_V1 | ( | plperl_to_hstore | ) |
Datum plperl_to_hstore | ( | PG_FUNCTION_ARGS | ) |
Definition at line 96 of file hstore_plperl.c.
References dTHX, ereport, errcode(), errmsg(), ERROR, hstoreCheckKeyLen, hstoreCheckValLen, hstorePairs, hstoreUniquePairs, i, Pairs::isnull, Pairs::key, sort-test::key, Pairs::keylen, Pairs::needfree, palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, pstrdup(), sv2cstr(), Pairs::val, val, Pairs::vallen, and value.
|
static |
Definition at line 17 of file hstore_plperl.c.
Referenced by _PG_init().
|
static |
Definition at line 19 of file hstore_plperl.c.
Referenced by _PG_init().
|
static |
Definition at line 15 of file hstore_plperl.c.
Referenced by _PG_init().
|
static |
Definition at line 13 of file hstore_plperl.c.
Referenced by _PG_init().
|
static |
Definition at line 11 of file hstore_plperl.c.
Referenced by _PG_init().
PG_MODULE_MAGIC |
Definition at line 7 of file hstore_plperl.c.