summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Bossart2025-12-11 21:13:04 +0000
committerNathan Bossart2025-12-11 21:13:04 +0000
commitb4cbc106a6ced69a0a13a980e1b4b212bb127458 (patch)
tree12d340aabe935a8aebf7813fae137d74d3fc8370 /src
parent81f72115cf189b0a428d3efca2e4beb02b825111 (diff)
Fix some comments.
Like commit 123661427b, these were discovered while reviewing Aleksander Alekseev's proposed changes to pgindent.
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/pqformat.c3
-rw-r--r--src/backend/rewrite/rewriteHandler.c2
-rw-r--r--src/backend/storage/file/fileset.c3
-rw-r--r--src/backend/utils/adt/numutils.c2
-rw-r--r--src/backend/utils/cache/relcache.c2
-rw-r--r--src/backend/utils/mb/conv.c4
-rw-r--r--src/backend/utils/mb/mbutils.c6
-rw-r--r--src/backend/utils/misc/guc.c2
-rw-r--r--src/backend/utils/mmgr/alignedalloc.c4
-rw-r--r--src/backend/utils/mmgr/portalmem.c3
-rw-r--r--src/backend/utils/sort/tuplesortvariants.c1
-rw-r--r--src/include/executor/executor.h2
-rw-r--r--src/include/libpq/libpq-be-fe-helpers.h2
13 files changed, 19 insertions, 17 deletions
diff --git a/src/backend/libpq/pqformat.c b/src/backend/libpq/pqformat.c
index 1cc126772f7..67bdd3d93d0 100644
--- a/src/backend/libpq/pqformat.c
+++ b/src/backend/libpq/pqformat.c
@@ -307,9 +307,8 @@ pq_endmessage(StringInfo buf)
*
* The data buffer is *not* freed, allowing to reuse the buffer with
* pq_beginmessage_reuse.
- --------------------------------
+ * --------------------------------
*/
-
void
pq_endmessage_reuse(StringInfo buf)
{
diff --git a/src/backend/rewrite/rewriteHandler.c b/src/backend/rewrite/rewriteHandler.c
index 688dcd09ca6..0852322cc58 100644
--- a/src/backend/rewrite/rewriteHandler.c
+++ b/src/backend/rewrite/rewriteHandler.c
@@ -2620,7 +2620,7 @@ view_col_is_auto_updatable(RangeTblRef *rtr, TargetEntry *tle)
* view_query_is_auto_updatable - test whether the specified view definition
* represents an auto-updatable view. Returns NULL (if the view can be updated)
* or a message string giving the reason that it cannot be.
-
+ *
* The returned string has not been translated; if it is shown as an error
* message, the caller should apply _() to translate it.
*
diff --git a/src/backend/storage/file/fileset.c b/src/backend/storage/file/fileset.c
index 4d5ee353fd7..2061aa44e77 100644
--- a/src/backend/storage/file/fileset.c
+++ b/src/backend/storage/file/fileset.c
@@ -114,7 +114,8 @@ FileSetCreate(FileSet *fileset, const char *name)
}
/*
- * Open a file that was created with FileSetCreate() */
+ * Open a file that was created with FileSetCreate()
+ */
File
FileSetOpen(FileSet *fileset, const char *name, int mode)
{
diff --git a/src/backend/utils/adt/numutils.c b/src/backend/utils/adt/numutils.c
index 3bf30774a0c..254c5cf82e4 100644
--- a/src/backend/utils/adt/numutils.c
+++ b/src/backend/utils/adt/numutils.c
@@ -113,7 +113,7 @@ static const int8 hexlookup[128] = {
* pg_strtoint16() will throw ereport() upon bad input format or overflow;
* while pg_strtoint16_safe() instead returns such complaints in *escontext,
* if it's an ErrorSaveContext.
-*
+ *
* NB: Accumulate input as an unsigned number, to deal with two's complement
* representation of the most negative number, which can't be represented as a
* signed positive number.
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index a4dc1cbe5ae..2d0cb7bcfd4 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -5643,7 +5643,7 @@ RelationGetIdentityKeyBitmap(Relation relation)
* This should be called only for an index that is known to have an associated
* exclusion constraint or primary key/unique constraint using WITHOUT
* OVERLAPS.
-
+ *
* It returns arrays (palloc'd in caller's context) of the exclusion operator
* OIDs, their underlying functions' OIDs, and their strategy numbers in the
* index's opclasses. We cache all this information since it requires a fair
diff --git a/src/backend/utils/mb/conv.c b/src/backend/utils/mb/conv.c
index 4a312ab429b..d53e885b067 100644
--- a/src/backend/utils/mb/conv.c
+++ b/src/backend/utils/mb/conv.c
@@ -484,7 +484,7 @@ pg_mb_radix_conv(const pg_mb_radix_tree *rt,
* utf: input string in UTF8 encoding (need not be null-terminated)
* len: length of input string (in bytes)
* iso: pointer to the output area (must be large enough!)
- (output string will be null-terminated)
+ * (output string will be null-terminated)
* map: conversion map for single characters
* cmap: conversion map for combined characters
* (optional, pass NULL if none)
@@ -694,7 +694,7 @@ UtfToLocal(const unsigned char *utf, int len,
* iso: input string in local encoding (need not be null-terminated)
* len: length of input string (in bytes)
* utf: pointer to the output area (must be large enough!)
- (output string will be null-terminated)
+ * (output string will be null-terminated)
* map: conversion map for single characters
* cmap: conversion map for combined characters
* (optional, pass NULL if none)
diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c
index dbce0e61812..d1701d69b16 100644
--- a/src/backend/utils/mb/mbutils.c
+++ b/src/backend/utils/mb/mbutils.c
@@ -497,7 +497,8 @@ pg_do_encoding_conversion_buf(Oid proc,
* Convert string to encoding encoding_name. The source
* encoding is the DB encoding.
*
- * BYTEA convert_to(TEXT string, NAME encoding_name) */
+ * BYTEA convert_to(TEXT string, NAME encoding_name)
+ */
Datum
pg_convert_to(PG_FUNCTION_ARGS)
{
@@ -522,7 +523,8 @@ pg_convert_to(PG_FUNCTION_ARGS)
* Convert string from encoding encoding_name. The destination
* encoding is the DB encoding.
*
- * TEXT convert_from(BYTEA string, NAME encoding_name) */
+ * TEXT convert_from(BYTEA string, NAME encoding_name)
+ */
Datum
pg_convert_from(PG_FUNCTION_ARGS)
{
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index f7d63e04c04..935c235e1b3 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -5449,7 +5449,7 @@ ShowGUCOption(const struct config_generic *record, bool use_units)
* variable sourceline, integer
* variable source, integer
* variable scontext, integer
-* variable srole, OID
+ * variable srole, OID
*/
static void
write_one_nondefault_variable(FILE *fp, struct config_generic *gconf)
diff --git a/src/backend/utils/mmgr/alignedalloc.c b/src/backend/utils/mmgr/alignedalloc.c
index b1be7426914..daee3fc80a1 100644
--- a/src/backend/utils/mmgr/alignedalloc.c
+++ b/src/backend/utils/mmgr/alignedalloc.c
@@ -23,8 +23,8 @@
/*
* AlignedAllocFree
-* Frees allocated memory; memory is removed from its owning context.
-*/
+ * Frees allocated memory; memory is removed from its owning context.
+ */
void
AlignedAllocFree(void *pointer)
{
diff --git a/src/backend/utils/mmgr/portalmem.c b/src/backend/utils/mmgr/portalmem.c
index 943da087c9f..1f2a423f38a 100644
--- a/src/backend/utils/mmgr/portalmem.c
+++ b/src/backend/utils/mmgr/portalmem.c
@@ -853,7 +853,8 @@ AtAbort_Portals(void)
/*
* Post-abort cleanup for portals.
*
- * Delete all portals not held over from prior transactions. */
+ * Delete all portals not held over from prior transactions.
+ */
void
AtCleanup_Portals(void)
{
diff --git a/src/backend/utils/sort/tuplesortvariants.c b/src/backend/utils/sort/tuplesortvariants.c
index 079a51c474d..a1f5c19ee97 100644
--- a/src/backend/utils/sort/tuplesortvariants.c
+++ b/src/backend/utils/sort/tuplesortvariants.c
@@ -1132,7 +1132,6 @@ tuplesort_getgintuple(Tuplesortstate *state, Size *len, bool forward)
* efficient, but only safe for callers that are prepared to have any
* subsequent manipulation of the tuplesort's state invalidate slot contents.
* For byval Datums, the value of the 'copy' parameter has no effect.
-
*/
bool
tuplesort_getdatum(Tuplesortstate *state, bool forward, bool copy,
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h
index fa2b657fb2f..7cd6a49309f 100644
--- a/src/include/executor/executor.h
+++ b/src/include/executor/executor.h
@@ -404,7 +404,7 @@ ExecEvalExpr(ExprState *state,
* Like ExecEvalExpr(), but for cases where no return value is expected,
* because the side-effects of expression evaluation are what's desired. This
* is e.g. used for projection and aggregate transition computation.
-
+ *
* Evaluate expression identified by "state" in the execution context
* given by "econtext".
*
diff --git a/src/include/libpq/libpq-be-fe-helpers.h b/src/include/libpq/libpq-be-fe-helpers.h
index 1c4a342090c..d2f6b3b1348 100644
--- a/src/include/libpq/libpq-be-fe-helpers.h
+++ b/src/include/libpq/libpq-be-fe-helpers.h
@@ -69,7 +69,7 @@ libpqsrv_connect(const char *conninfo, uint32 wait_event_info)
/*
* Like libpqsrv_connect(), except that this is a wrapper for
* PQconnectdbParams().
- */
+ */
static inline PGconn *
libpqsrv_connect_params(const char *const *keywords,
const char *const *values,