Rename jsonb_hash_ops to jsonb_path_ops.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/gin.sgml | modified | +2 −2 |
| doc/src/sgml/json.sgml | modified | +40 −5 |
| src/backend/utils/adt/jsonb_gin.c | modified | +13 −14 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_amop.h | modified | +3 −3 |
| src/include/catalog/pg_opclass.h | modified | +1 −1 |
| src/include/catalog/pg_opfamily.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +4 −4 |
| src/include/utils/jsonb.h | modified | +6 −6 |
| src/test/regress/expected/jsonb_1.out | modified | +2 −2 |
| src/test/regress/expected/jsonb.out | modified | +2 −2 |
| src/test/regress/sql/jsonb.sql | modified | +2 −2 |