Rename sync_error_count to tbl_sync_error_count in subscription statistics
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Peter Smith <smithpb2250@gmail.com>, Amit Kapila <amitkapila16@gmail.com>, shveta malik <shveta.malik@gmail.com>,
Masahiko Sawada <sawada.mshk@gmail.com>, Dilip Kumar <dilipbalaut@gmail.com>
Date: 2025-11-12T04:23:56Z
Lists: pgsql-hackers
Attachments
- 0001-Rename-sync_error_count-to-tbl_sync_error_count-in-s.patch (application/octet-stream) patch 0001
Hi, This patch proposes renaming a column in the view pg_stat_subscription_stats to disambiguate between table sync and sequence sync error counts. With the introduction of seq_sync_error_count, the existing column name sync_error_count becomes ambiguous, it's unclear whether it refers to tables, sequences, or both. Renaming it to tbl_sync_error_count makes the meaning explicit: it represents errors that occurred during table synchronization. This helps users avoid confusion when interpreting the view's output. These changes were also suggested by Amit's first comment at [1] and Peter's fourth comment at [2]. Thoughts? Since an existing column is being renamed, this change should also be mentioned in the release notes so that users can update any scripts or monitoring queries that reference it. [1] - https://www.postgresql.org/message-id/CAA4eK1LB7u2KQLRFh6xfTSpEB-8gbpR%3DhqzFOfL9Z1R8rj7Q5g%40mail.gmail.com [2] - https://www.postgresql.org/message-id/CAHut%2BPtoLN0bRu7bNiSeF04dQQecoW-EXKMBX%3DHy0uqCvQa8MA%40mail.gmail.com Regards, Vignesh
Commits
-
Rename two columns in pg_stat_subscription_stats.
- 3edaf29fa5e0 19 (unreleased) landed