]> granicus.if.org Git - postgresql/commit
Rename jsonb_hash_ops to jsonb_path_ops.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 May 2014 16:06:04 +0000 (12:06 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 May 2014 16:06:04 +0000 (12:06 -0400)
commit12e611d43e6efbf0e36014a3055ed47366facee7
tree9c012d4a86bb7aed5cd0fcdf971a28a2bd82c8e0
parente136271a947d142eaa7093a789e6fa9ceda18c17
Rename jsonb_hash_ops to jsonb_path_ops.

There's no longer much pressure to switch the default GIN opclass for
jsonb, but there was still some unhappiness with the name "jsonb_hash_ops",
since hashing is no longer a distinguishing property of that opclass,
and anyway it seems like a relatively minor detail.  At the suggestion of
Heikki Linnakangas, we'll use "jsonb_path_ops" instead; that captures the
important characteristic that each index entry depends on the entire path
from the document root to the indexed value.

Also add a user-facing explanation of the implementation properties of
these two opclasses.
12 files changed:
doc/src/sgml/gin.sgml
doc/src/sgml/json.sgml
src/backend/utils/adt/jsonb_gin.c
src/include/catalog/catversion.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_opclass.h
src/include/catalog/pg_opfamily.h
src/include/catalog/pg_proc.h
src/include/utils/jsonb.h
src/test/regress/expected/jsonb.out
src/test/regress/expected/jsonb_1.out
src/test/regress/sql/jsonb.sql