mirror of https://github.com/postgres/postgres
There's some question about the correctness of the hash function, but if it's wrong, the 32-bit version is also wrong. Amul Sul, reviewed by Hironobu Suzuki Discussion: https://postgr.es/m/CAAJ_b947JjnNr9Cp45iNjSqKf6PA5mCTmKsRwPjows93YwQrmw@mail.gmail.compull/34/head
parent
48c41fa974
commit
eb6f29141b
@ -0,0 +1,12 @@ |
|||||||
|
/* contrib/hstore/hstore--1.5--1.6.sql */ |
||||||
|
|
||||||
|
-- complain if script is sourced in psql, rather than via ALTER EXTENSION |
||||||
|
\echo Use "ALTER EXTENSION hstore UPDATE TO '1.6'" to load this file. \quit |
||||||
|
|
||||||
|
CREATE FUNCTION hstore_hash_extended(hstore, int8) |
||||||
|
RETURNS int8 |
||||||
|
AS 'MODULE_PATHNAME','hstore_hash_extended' |
||||||
|
LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE; |
||||||
|
|
||||||
|
ALTER OPERATOR FAMILY hash_hstore_ops USING hash ADD |
||||||
|
FUNCTION 2 hstore_hash_extended(hstore, int8); |
@ -1,5 +1,5 @@ |
|||||||
# hstore extension |
# hstore extension |
||||||
comment = 'data type for storing sets of (key, value) pairs' |
comment = 'data type for storing sets of (key, value) pairs' |
||||||
default_version = '1.5' |
default_version = '1.6' |
||||||
module_pathname = '$libdir/hstore' |
module_pathname = '$libdir/hstore' |
||||||
relocatable = true |
relocatable = true |
||||||
|
Loading…
Reference in new issue