From: | Peter Smith <smithpb2250(at)gmail(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, "tanghy(dot)fnst(at)fujitsu(dot)com" <tanghy(dot)fnst(at)fujitsu(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Design of pg_stat_subscription_workers vs pgstats |
Date: | 2022-02-28 03:29:13 |
Message-ID: | CAHut+PuTV69UhY9OtL33d8bUJu=VbdoQOAZ-Ru8wUG_vE5_XHg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Below are my comments for the v4 patch.
These are only nitpicking comments now; Otherwise, it LGTM.
(Sorry, now I see there are some overlaps with comments posted in the
last 20 mins so take or leave these as you wish)
======
1. doc/src/sgml/monitoring.sgml
- <para>
- OID of the relation that the worker was processing when the
- error occurred
+ Number of times an error occurred during the application of changes
</para></entry>
</row>
BEFORE
Number of times an error occurred during the application of changes
SUGGESTED
Number of times an error occurred while applying changes
~~~
2. doc/src/sgml/monitoring.sgml
+ Resets statistics for a single subscription shown in the
+ <structname>pg_stat_subscription_stats</structname> view to zero. If
+ the argument is <literal>NULL</literal>, reset statistics for all
+ subscriptions.
</para>
SUGGESTED (simpler description, more similar to pg_stat_reset_replication_slot)
Reset statistics to zero for a single subscription. If the argument is
<literal>NULL</literal>, reset statistics for all subscriptions.
~~~
3. src/backend/replication/logical/worker.c - comment
+ /* */
+ pgstat_report_subscription_error(MySubscription->oid, !am_tablesync_worker());
BEFORE
Report the worker failed during the application of the change
SUGGESTED
Report the worker failed while applying changes
~~~
4. src/include/pgstat.h - comment
+typedef struct PgStat_MsgResetsubcounter
+{
+ PgStat_MsgHdr m_hdr;
+ Oid m_subid; /* InvalidOid for clearing all subscription
+ * stats */
+} PgStat_MsgResetsubcounter;
BEFORE
InvalidOid for clearing all subscription stats
SUGGESTED
InvalidOid means reset all subscription stats
------
Kind Regards,
Peter Smith.
Fujitsu Australia
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2022-02-28 03:46:59 | Re: Commitfest manager for 2022-03 |
Previous Message | osumi.takamichi@fujitsu.com | 2022-02-28 03:19:22 | RE: Design of pg_stat_subscription_workers vs pgstats |