aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2022-03-01 06:17:52 +0530
committerAmit Kapila <akapila@postgresql.org>2022-03-01 06:17:52 +0530
commit7a85073290856554416353a89799a4c04d09b74b (patch)
tree46fdf5ee363b32132dd70d66e16bcfd5c51dc1fc /src/backend/utils/adt/numeric.c
parent54bd1e43ca56e323aef309dc2dc0e1391825ce68 (diff)
downloadpostgresql-7a85073290856554416353a89799a4c04d09b74b.tar.gz
postgresql-7a85073290856554416353a89799a4c04d09b74b.zip
Reconsider pg_stat_subscription_workers view.
It was decided (refer to the Discussion link below) that the stats collector is not an appropriate place to store the error information of subscription workers. This patch changes the pg_stat_subscription_workers view (introduced by commit 8d74fc96db) so that it stores only statistics counters: apply_error_count and sync_error_count, and has one entry for each subscription. The removed error information such as error-XID and the error message would be stored in another way in the future which is more reliable and persistent. After removing these error details, there is no longer any relation information, so the subscription statistics are now a cluster-wide statistics. The patch also changes the view name to pg_stat_subscription_stats since the word "worker" is an implementation detail that we use one worker for one tablesync and one apply. Author: Masahiko Sawada, based on suggestions by Andres Freund Reviewed-by: Peter Smith, Haiying Tang, Takamichi Osumi, Amit Kapila Discussion: https://postgr.es/m/20220125063131.4cmvsxbz2tdg6g65@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions