From 9370978da8ac8f0e31867859282b0f2be724fe48 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 3 Apr 2025 13:39:33 +0300 Subject: Fix boilerplate comments in btree_gist A few of these were copy-pasted wrong, like the comment "Bytea ops" in btree_numeric.c. Instead of fixing the incorrect ones, replace them all with generic comment "GiST support functions". Also tidy up the inconsistent newlines between various functions while we're at it. --- contrib/btree_gist/btree_numeric.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'contrib/btree_gist/btree_numeric.c') diff --git a/contrib/btree_gist/btree_numeric.c b/contrib/btree_gist/btree_numeric.c index d533648a295..f34e00818bb 100644 --- a/contrib/btree_gist/btree_numeric.c +++ b/contrib/btree_gist/btree_numeric.c @@ -12,9 +12,7 @@ #include "utils/numeric.h" #include "utils/rel.h" -/* -** Bytea ops -*/ +/* GiST support functions */ PG_FUNCTION_INFO_V1(gbt_numeric_compress); PG_FUNCTION_INFO_V1(gbt_numeric_union); PG_FUNCTION_INFO_V1(gbt_numeric_picksplit); @@ -90,10 +88,9 @@ static const gbtree_vinfo tinfo = /************************************************** - * Text ops + * GiST support functions **************************************************/ - Datum gbt_numeric_compress(PG_FUNCTION_ARGS) { @@ -102,8 +99,6 @@ gbt_numeric_compress(PG_FUNCTION_ARGS) PG_RETURN_POINTER(gbt_var_compress(entry, &tinfo)); } - - Datum gbt_numeric_consistent(PG_FUNCTION_ARGS) { @@ -125,8 +120,6 @@ gbt_numeric_consistent(PG_FUNCTION_ARGS) PG_RETURN_BOOL(retval); } - - Datum gbt_numeric_union(PG_FUNCTION_ARGS) { @@ -137,7 +130,6 @@ gbt_numeric_union(PG_FUNCTION_ARGS) &tinfo, fcinfo->flinfo)); } - Datum gbt_numeric_same(PG_FUNCTION_ARGS) { @@ -149,7 +141,6 @@ gbt_numeric_same(PG_FUNCTION_ARGS) PG_RETURN_POINTER(result); } - Datum gbt_numeric_penalty(PG_FUNCTION_ARGS) { @@ -215,8 +206,6 @@ gbt_numeric_penalty(PG_FUNCTION_ARGS) PG_RETURN_POINTER(result); } - - Datum gbt_numeric_picksplit(PG_FUNCTION_ARGS) { -- cgit v1.2.3