File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
3
from mamonsu .plugins .pgsql .plugin import PgsqlPlugin as Plugin
4
- from distutils .version import LooseVersion
5
4
from .pool import Pooler
6
5
7
6
@@ -10,7 +9,7 @@ class PreparedTransaction(Plugin):
10
9
key_count = {
11
10
'state' : 'count_prepared' ,
12
11
'key' : 'pgsql.prepared.count' ,
13
- 'name' : 'PostgreSQL: numder of prepared transactions' ,
12
+ 'name' : 'PostgreSQL: number of prepared transactions' ,
14
13
'color' : '00BB00' ,
15
14
'yaxisside' : 0 ,
16
15
}
Original file line number Diff line number Diff line change @@ -178,11 +178,11 @@ enabled = False
178
178
relations=pg_catalog.pg_class,pg_catalog.pg_user
179
179
interval = 500
180
180
181
- # Get age in second and number of transactions that are currently prepared for two-phase commit.
181
+ # Get age ( in seconds) of the oldest running prepared transaction and number of all prepared transactions for two-phase commit.
182
182
# https://www.postgresql.org/docs/current/sql-prepare-transaction.html
183
183
# https://www.postgresql.org/docs/12/view-pg-prepared-xacts.html
184
- # max_prepared_transaction_time - age of prepared pransaction in second, after which the trigger run .
185
- # (возраст подготовленных транзакций, после которого срабатывает триггер.) ????
184
+ # max_prepared_transaction_time - age of prepared transaction in seconds .
185
+ # If pgsql.prepared.oldest exceeds max_prepared_transaction_time the trigger fires.
186
186
[preparedtransaction]
187
187
max_prepared_transaction_time = 60
188
188
interval = 60
You can’t perform that action at this time.
0 commit comments