forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite0b0142
committed
Create subscription stats entry at CREATE SUBSCRIPTION time
Previously, the subscription stats entry was created when the firststats, i.e., an error on apply worker or tablesync worker, werereported. Therefore, the stats_reset field was not updated bypg_stat_reset_subscription_stats() if the stats entry was notpopulated yet, which was different behavior than other statistics.This change creates the subscription stats entry and initializes it atCREATE 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.com1 parentcd4e8ca commite0b0142
File tree
3 files changed
+51
-2
lines changed- src
- backend/utils/activity
- test/regress
- expected
- sql
3 files changed
+51
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 |
| - | |
46 | 44 |
| |
47 | 45 |
| |
48 | 46 |
| |
49 | 47 |
| |
| 48 | + | |
50 | 49 |
| |
51 | 50 |
| |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 |
| |
53 | 57 |
| |
54 | 58 |
| |
|
Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
40 | 74 |
| |
41 | 75 |
| |
42 | 76 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
33 | 44 |
| |
34 | 45 |
| |
35 | 46 |
| |
|
0 commit comments
Comments
(0)