diff options
author | Andres Freund <andres@anarazel.de> | 2022-10-06 16:45:20 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-10-06 17:17:16 -0700 |
commit | e0b0142959066f3a9de1c6867f4ec8d41d104f33 (patch) | |
tree | 24ce07203d35a3f37aaa8ba679e6c830fa138ed9 /src/port | |
parent | cd4e8caaa0eb5c3d3b12a45b29035e7a4bdfa4a8 (diff) | |
download | postgresql-e0b0142959066f3a9de1c6867f4ec8d41d104f33.tar.gz |
Create subscription stats entry at CREATE SUBSCRIPTION time
Previously, the subscription stats entry was created when the first
stats, i.e., an error on apply worker or tablesync worker, were
reported. Therefore, the stats_reset field was not updated by
pg_stat_reset_subscription_stats() if the stats entry was not
populated yet, which was different behavior than other statistics.
This change creates the subscription stats entry and initializes it at
CREATE SUBSCRIPTION time.
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/CAAKRu_Zqd-e5imT_3-ZiQv1cfsWuy16OJTiUaCvqpq4V7GVdSg@mail.gmail.com
Diffstat (limited to 'src/port')
0 files changed, 0 insertions, 0 deletions