PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "fmgr.h"
#include "hstore/hstore.h"
#include "plpy_typeio.h"
#include "plpython.h"
Go to the source code of this file.
Macros | |
#define | PLyObject_AsString PLyObject_AsString_p |
#define | PLyUnicode_FromStringAndSize PLyUnicode_FromStringAndSize_p |
#define | hstoreUpgrade hstoreUpgrade_p |
#define | hstoreUniquePairs hstoreUniquePairs_p |
#define | hstorePairs hstorePairs_p |
#define | hstoreCheckKeyLen hstoreCheckKeyLen_p |
#define | hstoreCheckValLen hstoreCheckValLen_p |
Typedefs | |
typedef char *(* | PLyObject_AsString_t) (PyObject *plrv) |
typedef PyObject *(* | PLyUnicode_FromStringAndSize_t) (const char *s, Py_ssize_t size) |
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_plpython) | |
Datum | hstore_to_plpython (PG_FUNCTION_ARGS) |
PG_FUNCTION_INFO_V1 (plpython_to_hstore) | |
Datum | plpython_to_hstore (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
static PLyObject_AsString_t | PLyObject_AsString_p |
static PLyUnicode_FromStringAndSize_t | PLyUnicode_FromStringAndSize_p |
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 73 of file hstore_plpython.c.
#define hstoreCheckValLen hstoreCheckValLen_p |
Definition at line 74 of file hstore_plpython.c.
#define hstorePairs hstorePairs_p |
Definition at line 72 of file hstore_plpython.c.
#define hstoreUniquePairs hstoreUniquePairs_p |
Definition at line 71 of file hstore_plpython.c.
#define hstoreUpgrade hstoreUpgrade_p |
Definition at line 70 of file hstore_plpython.c.
#define PLyObject_AsString PLyObject_AsString_p |
Definition at line 68 of file hstore_plpython.c.
#define PLyUnicode_FromStringAndSize PLyUnicode_FromStringAndSize_p |
Definition at line 69 of file hstore_plpython.c.
typedef size_t(* hstoreCheckKeyLen_t) (size_t len) |
Definition at line 23 of file hstore_plpython.c.
typedef size_t(* hstoreCheckValLen_t) (size_t len) |
Definition at line 25 of file hstore_plpython.c.
Definition at line 21 of file hstore_plpython.c.
Definition at line 19 of file hstore_plpython.c.
Definition at line 17 of file hstore_plpython.c.
typedef char*(* PLyObject_AsString_t) (PyObject *plrv) |
Definition at line 11 of file hstore_plpython.c.
typedef PyObject*(* PLyUnicode_FromStringAndSize_t) (const char *s, Py_ssize_t size) |
Definition at line 13 of file hstore_plpython.c.
void _PG_init | ( | void | ) |
Definition at line 33 of file hstore_plpython.c.
References AssertVariableIsOfType, hstoreCheckKeyLen, hstoreCheckKeyLen_p, hstoreCheckValLen, hstoreCheckValLen_p, hstorePairs, hstorePairs_p, hstoreUniquePairs, hstoreUniquePairs_p, hstoreUpgrade, hstoreUpgrade_p, load_external_function(), PLyObject_AsString, PLyObject_AsString_p, PLyUnicode_FromStringAndSize, and PLyUnicode_FromStringAndSize_p.
Datum hstore_to_plpython | ( | PG_FUNCTION_ARGS | ) |
Definition at line 80 of file hstore_plpython.c.
References ARRPTR, ereport, errcode(), errmsg(), ERROR, HS_COUNT, HSTORE_KEY, HSTORE_KEYLEN, HSTORE_VAL, HSTORE_VALISNULL, HSTORE_VALLEN, i, sort-test::key, PG_GETARG_HSTORE_P, PLyUnicode_FromStringAndSize, PointerGetDatum(), STRPTR, and value.
PG_FUNCTION_INFO_V1 | ( | hstore_to_plpython | ) |
PG_FUNCTION_INFO_V1 | ( | plpython_to_hstore | ) |
Datum plpython_to_hstore | ( | PG_FUNCTION_ARGS | ) |
Definition at line 122 of file hstore_plpython.c.
References ereport, errcode(), errmsg(), ERROR, hstoreCheckKeyLen, hstoreCheckValLen, hstorePairs, hstoreUniquePairs, i, Pairs::isnull, items, Pairs::key, sort-test::key, Pairs::keylen, Pairs::needfree, palloc(), PG_END_TRY, PG_FINALLY, PG_GETARG_POINTER, PG_RETURN_POINTER, PG_TRY, PLyObject_AsString, Pairs::val, val, Pairs::vallen, and value.
|
static |
Definition at line 24 of file hstore_plpython.c.
Referenced by _PG_init().
|
static |
Definition at line 26 of file hstore_plpython.c.
Referenced by _PG_init().
|
static |
Definition at line 22 of file hstore_plpython.c.
Referenced by _PG_init().
|
static |
Definition at line 20 of file hstore_plpython.c.
Referenced by _PG_init().
|
static |
Definition at line 18 of file hstore_plpython.c.
Referenced by _PG_init().
PG_MODULE_MAGIC |
Definition at line 8 of file hstore_plpython.c.
|
static |
Definition at line 12 of file hstore_plpython.c.
Referenced by _PG_init().
|
static |
Definition at line 14 of file hstore_plpython.c.
Referenced by _PG_init().