diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2025-04-03 13:39:33 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2025-04-03 13:39:33 +0300 |
commit | 9370978da8ac8f0e31867859282b0f2be724fe48 (patch) | |
tree | 5da91f476e7ba9eee548ee67eeabea80f5f1ded9 /contrib/btree_gist/btree_text.c | |
parent | 82a46cca99fa967cc3c6c2cf55254dd44eebbcfd (diff) | |
download | postgresql-9370978da8ac8f0e31867859282b0f2be724fe48.tar.gz postgresql-9370978da8ac8f0e31867859282b0f2be724fe48.zip |
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.
Diffstat (limited to 'contrib/btree_gist/btree_text.c')
-rw-r--r-- | contrib/btree_gist/btree_text.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/contrib/btree_gist/btree_text.c b/contrib/btree_gist/btree_text.c index 8f80f54240f..ed706e3eaa7 100644 --- a/contrib/btree_gist/btree_text.c +++ b/contrib/btree_gist/btree_text.c @@ -8,9 +8,7 @@ #include "mb/pg_wchar.h" #include "utils/fmgrprotos.h" -/* -** Text ops -*/ +/* GiST support functions */ PG_FUNCTION_INFO_V1(gbt_text_compress); PG_FUNCTION_INFO_V1(gbt_bpchar_compress); PG_FUNCTION_INFO_V1(gbt_text_union); @@ -163,10 +161,9 @@ static gbtree_vinfo bptinfo = /************************************************** - * Text ops + * GiST support functions **************************************************/ - Datum gbt_text_compress(PG_FUNCTION_ARGS) { @@ -187,8 +184,6 @@ gbt_bpchar_compress(PG_FUNCTION_ARGS) return gbt_text_compress(fcinfo); } - - Datum gbt_text_consistent(PG_FUNCTION_ARGS) { @@ -216,7 +211,6 @@ gbt_text_consistent(PG_FUNCTION_ARGS) PG_RETURN_BOOL(retval); } - Datum gbt_bpchar_consistent(PG_FUNCTION_ARGS) { @@ -243,7 +237,6 @@ gbt_bpchar_consistent(PG_FUNCTION_ARGS) PG_RETURN_BOOL(retval); } - Datum gbt_text_union(PG_FUNCTION_ARGS) { @@ -254,7 +247,6 @@ gbt_text_union(PG_FUNCTION_ARGS) &tinfo, fcinfo->flinfo)); } - Datum gbt_text_picksplit(PG_FUNCTION_ARGS) { @@ -277,7 +269,6 @@ gbt_text_same(PG_FUNCTION_ARGS) PG_RETURN_POINTER(result); } - Datum gbt_text_penalty(PG_FUNCTION_ARGS) { |