summaryrefslogtreecommitdiff
path: root/src/backend/utils/activity/pgstat_subscription.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-04-04 12:14:34 -0700
committerAndres Freund <andres@anarazel.de>2022-04-04 13:53:34 -0700
commitedadf8098f4b2ca50bcc449f8857d0cc960b3c90 (patch)
tree710ed7455f85bf13e140aeff83b987b132014eea /src/backend/utils/activity/pgstat_subscription.c
parent4e34747c88a03ede6e9d731727815e37273d4bc9 (diff)
pgstat: consistent function comment formatting.
There was a wild mishmash of function comment formatting in pgstat, making it hard to know what to use for any new function and hard to extend existing comments (particularly due to randomly different forms of indentation). Author: Andres Freund <andres@anarazel.de> Reviewed-By: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/20220329191727.mzzwbl7udhpq7pmf@alap3.anarazel.de Discussion: https://postgr.es/m/20220308205351.2xcn6k4x5yivcxyd@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/activity/pgstat_subscription.c')
-rw-r--r--src/backend/utils/activity/pgstat_subscription.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/src/backend/utils/activity/pgstat_subscription.c b/src/backend/utils/activity/pgstat_subscription.c
index 2f1168f5e40..70874e13f5e 100644
--- a/src/backend/utils/activity/pgstat_subscription.c
+++ b/src/backend/utils/activity/pgstat_subscription.c
@@ -20,15 +20,12 @@
#include "utils/pgstat_internal.h"
-/* ----------
- * pgstat_reset_subscription_counter() -
+/*
+ * Tell the statistics collector to reset a single subscription
+ * counter, or all subscription counters (when subid is InvalidOid).
*
- * Tell the statistics collector to reset a single subscription
- * counter, or all subscription counters (when subid is InvalidOid).
- *
- * Permission checking for this function is managed through the normal
- * GRANT system.
- * ----------
+ * Permission checking for this function is managed through the normal
+ * GRANT system.
*/
void
pgstat_reset_subscription_counter(Oid subid)
@@ -44,11 +41,8 @@ pgstat_reset_subscription_counter(Oid subid)
pgstat_send(&msg, sizeof(msg));
}
-/* ----------
- * pgstat_report_subscription_error() -
- *
- * Tell the collector about the subscription error.
- * ----------
+/*
+ * Tell the collector about the subscription error.
*/
void
pgstat_report_subscription_error(Oid subid, bool is_apply_error)
@@ -61,11 +55,8 @@ pgstat_report_subscription_error(Oid subid, bool is_apply_error)
pgstat_send(&msg, sizeof(PgStat_MsgSubscriptionError));
}
-/* ----------
- * pgstat_report_subscription_drop() -
- *
- * Tell the collector about dropping the subscription.
- * ----------
+/*
+ * Tell the collector about dropping the subscription.
*/
void
pgstat_report_subscription_drop(Oid subid)