|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | HEntry |
| struct | HStore |
| struct | Pairs |
Functions | |
| PGDLLEXPORT HStore * | hstoreUpgrade (Datum orig) |
| PGDLLEXPORT int | hstoreUniquePairs (Pairs *a, int32 l, int32 *buflen) |
| PGDLLEXPORT HStore * | hstorePairs (Pairs *pairs, int32 pcount, int32 buflen) |
| PGDLLEXPORT size_t | hstoreCheckKeyLen (size_t len) |
| PGDLLEXPORT size_t | hstoreCheckValLen (size_t len) |
| PGDLLEXPORT int | hstoreFindKey (HStore *hs, int *lowbound, char *key, int keylen) |
| PGDLLEXPORT Pairs * | hstoreArrayToPairs (ArrayType *a, int *npairs) |
| #define DatumGetHStoreP | ( | d | ) | hstoreUpgrade(d) |
| #define HSE_ISFIRST | ( | he_ | ) | (((he_).entry & HENTRY_ISFIRST) != 0) |
| #define HSE_ISNULL | ( | he_ | ) | (((he_).entry & HENTRY_ISNULL) != 0) |
| #define HSE_OFF | ( | he_ | ) | (HSE_ISFIRST(he_) ? 0 : HSE_ENDPOS((&(he_))[-1])) |
| #define HStoreOldContainsStrategyNumber 13 /* backwards compatibility */ |
| #define PG_GETARG_HSTORE_P | ( | x | ) | DatumGetHStoreP(PG_GETARG_DATUM(x)) |
|
extern |
Definition at line 73 of file hstore_op.c.
References a, DatumGetPointer(), deconstruct_array_builtin(), ereport, errcode(), errmsg(), ERROR, fb(), hstoreUniquePairs, i, j, MaxAllocSize, palloc(), VARDATA(), VARHDRSZ, and VARSIZE().
Referenced by hstore_delete_array(), hstore_exists_all(), hstore_exists_any(), and hstore_slice_to_hstore().
|
extern |
Definition at line 407 of file hstore_io.c.
References ereport, errcode(), errmsg(), ERROR, fb(), HSTORE_MAX_KEY_LEN, and len.
|
extern |
Definition at line 427 of file hstore_io.c.
References ereport, errcode(), errmsg(), ERROR, fb(), HSTORE_MAX_VALUE_LEN, and len.
Definition at line 36 of file hstore_op.c.
References ARRPTR, difference(), fb(), HS_COUNT, HSTORE_KEY, HSTORE_KEYLEN, and STRPTR.
Referenced by hstore_contains(), hstore_defined(), hstore_exists(), hstore_exists_all(), hstore_exists_any(), hstore_fetchval(), hstore_populate_record(), hstore_slice_to_array(), hstore_slice_to_hstore(), and hstore_subscript_fetch().
|
extern |
Definition at line 448 of file hstore_io.c.
References ARRPTR, buf, CALCDATASIZE, fb(), HS_ADDITEM, HS_FINALIZE, HS_SETCOUNT, i, len, palloc(), SET_VARSIZE(), and STRPTR.
|
extern |
Definition at line 359 of file hstore_io.c.
References a, comparePairs(), fb(), Pairs::isnull, Pairs::key, Pairs::keylen, Pairs::needfree, pfree(), qsort, Pairs::val, and Pairs::vallen.
|
extern |
Definition at line 235 of file hstore_compat.c.
References ARRPTR, DatumGetPointer(), elog, ERROR, fb(), HENTRY_ISFIRST, HENTRY_ISNULL, HENTRY_POSMASK, HS_COUNT, HS_FIXSIZE, HS_FLAG_NEWVERSION, HS_SETCOUNT, HSE_ISFIRST, hstoreValidNewFormat(), hstoreValidOldFormat(), i, PG_DETOAST_DATUM, PG_DETOAST_DATUM_COPY, HOldEntry::pos, VARSIZE(), and WARNING.