diff options
| author | Amit Kapila <akapila@postgresql.org> | 2025-11-18 03:58:55 +0000 |
|---|---|---|
| committer | Amit Kapila <akapila@postgresql.org> | 2025-11-18 03:58:55 +0000 |
| commit | 3edaf29fa5e0d4fd6419c7eb73fd6df5b0406789 (patch) | |
| tree | 7d34e9255b5877d6ddd3eee5a0330cc6b9ce4ab2 /src/include/pgstat.h | |
| parent | c677f2b09f24a1a92789bcbc0ee6599cfd034f27 (diff) | |
Rename two columns in pg_stat_subscription_stats.
This patch renames the sync_error_count column to sync_table_error_count
in the pg_stat_subscription_stats view. The new name makes the purpose
explicit now that a separate column exists to track sequence
synchronization errors.
Additionally, the column seq_sync_error_count is renamed to
sync_seq_error_count to maintain a consistent naming pattern, making it
easier for users to group, and query synchronization related counters.
Author: Vignesh C <vignesh21@gmail.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CALDaNm3WwJmz=-4ybTkhniB-Nf3qmFG9Zx1uKjyLLoPF5NYYXA@mail.gmail.com
Diffstat (limited to 'src/include/pgstat.h')
| -rw-r--r-- | src/include/pgstat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index a0610bb3e31..a68e725259a 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -109,8 +109,8 @@ typedef struct PgStat_FunctionCallUsage typedef struct PgStat_BackendSubEntry { PgStat_Counter apply_error_count; - PgStat_Counter seq_sync_error_count; - PgStat_Counter sync_error_count; + PgStat_Counter sync_seq_error_count; + PgStat_Counter sync_table_error_count; PgStat_Counter conflict_count[CONFLICT_NUM_TYPES]; } PgStat_BackendSubEntry; @@ -418,8 +418,8 @@ typedef struct PgStat_SLRUStats typedef struct PgStat_StatSubEntry { PgStat_Counter apply_error_count; - PgStat_Counter seq_sync_error_count; - PgStat_Counter sync_error_count; + PgStat_Counter sync_seq_error_count; + PgStat_Counter sync_table_error_count; PgStat_Counter conflict_count[CONFLICT_NUM_TYPES]; TimestampTz stat_reset_timestamp; } PgStat_StatSubEntry; |
