From 12e611d43e6efbf0e36014a3055ed47366facee7 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 11 May 2014 12:06:04 -0400 Subject: 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. --- src/include/utils/jsonb.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/include/utils/jsonb.h') diff --git a/src/include/utils/jsonb.h b/src/include/utils/jsonb.h index bb8c380ee3a..add76280ba1 100644 --- a/src/include/utils/jsonb.h +++ b/src/include/utils/jsonb.h @@ -332,18 +332,18 @@ extern Datum jsonb_eq(PG_FUNCTION_ARGS); extern Datum jsonb_cmp(PG_FUNCTION_ARGS); extern Datum jsonb_hash(PG_FUNCTION_ARGS); -/* GIN support functions */ +/* GIN support functions for jsonb_ops */ extern Datum gin_compare_jsonb(PG_FUNCTION_ARGS); extern Datum gin_extract_jsonb(PG_FUNCTION_ARGS); extern Datum gin_extract_jsonb_query(PG_FUNCTION_ARGS); extern Datum gin_consistent_jsonb(PG_FUNCTION_ARGS); extern Datum gin_triconsistent_jsonb(PG_FUNCTION_ARGS); -/* GIN hash opclass functions */ -extern Datum gin_extract_jsonb_hash(PG_FUNCTION_ARGS); -extern Datum gin_extract_jsonb_query_hash(PG_FUNCTION_ARGS); -extern Datum gin_consistent_jsonb_hash(PG_FUNCTION_ARGS); -extern Datum gin_triconsistent_jsonb_hash(PG_FUNCTION_ARGS); +/* GIN support functions for jsonb_path_ops */ +extern Datum gin_extract_jsonb_path(PG_FUNCTION_ARGS); +extern Datum gin_extract_jsonb_query_path(PG_FUNCTION_ARGS); +extern Datum gin_consistent_jsonb_path(PG_FUNCTION_ARGS); +extern Datum gin_triconsistent_jsonb_path(PG_FUNCTION_ARGS); /* Support functions */ extern int compareJsonbContainers(JsonbContainer *a, JsonbContainer *b); -- cgit v1.2.3