initdb required: Refactor hashing
authorPeter Geoghegan <pg@heroku.com>
Sat, 15 Mar 2014 10:52:51 +0000 (03:52 -0700)
committerPeter Geoghegan <pg@heroku.com>
Sat, 15 Mar 2014 10:52:51 +0000 (03:52 -0700)
commite8d711d190b044e42aeeccfdd9711f9110902831
treee194e96b94e9b70af8c539fb36be4b06325ddf32
parent9df0293f2d186871a0cf0f075a0fd4f30381fbba
initdb required: Refactor hashing

Do some variability and commonality analysis among jsonb_hash and the
jsonb_hash_ops opclass.  Eliminate some redundant code.  Totally remove
the slightly dubious practice of using a CRC32 for hashing.
src/backend/utils/adt/jsonb_gin.c
src/backend/utils/adt/jsonb_op.c
src/backend/utils/adt/jsonb_support.c
src/include/utils/jsonb.h