How to get no. of commits/rollbacks by application on the database?

From: Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to get no. of commits/rollbacks by application on the database?
Date: 2012-06-19 13:08:30
Message-ID: CA+h6AhjaGp+4PwRF9yO7L5Q1KijUjSYjRMuSUzK+FMqN-wfNoA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

How can we figure out no. of commit/rollback happend on the database by
application ?

As per my testing what I observed, even if your database is idle than
in pg_stat_database
(xact_commit/xact_rollback) columns keep increasing. This means
autovacuum/autoanalyze count also included in these column.

If am a DBA, how to know exact application or user commits/rollbacks
happened on the database without enabling logs.

Please advice.

---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2012-06-19 13:11:10 Re: SELECT INTO create new table, how to turn off this feature?
Previous Message aasat 2012-06-19 13:05:42 SELECT INTO create new table, how to turn off this feature?