*** pgsql/contrib/hstore/hstore.h 2007/11/15 21:14:29 1.5 --- pgsql/contrib/hstore/hstore.h 2009/03/15 22:05:25 1.5.2.1 *************** typedef struct *** 21,26 **** --- 21,31 ---- pos:31; } HEntry; + /* these are determined by the sizes of the keylen and vallen fields */ + /* in struct HEntry and struct Pairs */ + #define HSTORE_MAX_KEY_LEN 65535 + #define HSTORE_MAX_VALUE_LEN 65535 + typedef struct { *************** typedef struct *** 50,55 **** --- 55,63 ---- int comparePairs(const void *a, const void *b); int uniquePairs(Pairs * a, int4 l, int4 *buflen); + size_t hstoreCheckKeyLen(size_t len); + size_t hstoreCheckValLen(size_t len); + #define HStoreContainsStrategyNumber 7 #define HStoreExistsStrategyNumber 9