Re: Transaction Size in PostgreSQL - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Transaction Size in PostgreSQL
Date
Msg-id CAKFQuwakZa2pCxwZ64YhiQQO0znt7tiEdF2X13wUZTpPr356rQ@mail.gmail.com
Whole thread Raw
In response to Re: Transaction Size in PostgreSQL  (Sivasamy Subramaniam <sivasamyinfo@gmail.com>)
List pgsql-admin
On Monday, December 6, 2021, Sivasamy Subramaniam <sivasamyinfo@gmail.com> wrote:
Transaction size meaning, for example - any transaction over 1GB in size? I am looking to set up an alert if any massive data changes are happening in a single transaction. I can do it for long running transactions or query but trying to figure out any easy way to calculate the amount of data changes per transaction.

So if you truncate a 4GB table you want to know about it?  I’m reasonably confident PostgreSQL does not have the tools needed to accomplish your goal at 100%.  You can possibly pick up some subset though if you really want…

David J.

pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Pg_dump
Next
From: Mladen Gogala
Date:
Subject: Re: Transaction Size in PostgreSQL