From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Transaction commits VS Transaction commits (with parallel) VS query mean time |
Date: | 2019-03-23 04:20:48 |
Message-ID: | 20190323042048.GA845@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2019-Mar-23, Amit Kapila wrote:
> On Fri, Mar 22, 2019 at 10:04 AM Alvaro Herrera
> <alvherre(at)2ndquadrant(dot)com> wrote:
> > Not count them if they're implementation details; otherwise count them.
> > For example, IMO autovacuum transactions should definitely be counted
> > (as one transaction, even if they run parallel vacuum).
>
> It appears to me that the definition of what we want to display in
> xact_commit/xact_rollback (for pg_stat_database view) is slightly
> vague. For ex. does it mean that we will show only transactions
> started by the user or does it also includes the other transactions
> started internally (which you call implementation detail) to perform
> the various operations? I think users would be more interested in the
> transactions initiated by them.
Yes, you're probably right.
> I think some users might also be interested in the write transactions
> happened in the system, basically, those have consumed xid.
Well, do they really want to *count* these transactions, or is it enough
to keep an eye on the "age" of some XID column? Other than for XID
freezing purposes, I don't see such internal transactions as very
interesting.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2019-03-23 05:18:27 | reorder pg_rewind control file sync |
Previous Message | Amit Kapila | 2019-03-23 03:52:00 | Re: Transaction commits VS Transaction commits (with parallel) VS query mean time |