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

From Rui DeSousa
Subject Re: Transaction Size in PostgreSQL
Date
Msg-id 5681E7B8-DCF4-48B6-B32F-6895670BB000@crazybean.net
Whole thread Raw
In response to Re: Transaction Size in PostgreSQL  (Thomas Kellerer <shammat@gmx.net>)
List pgsql-admin

On Dec 7, 2021, at 1:41 AM, Thomas Kellerer <shammat@gmx.net> wrote:

"Massive data changes" in a single transaction aren't really a problem.
In my experience a single transaction changing a lot of rows is more
efficient than multiple transactions changing fewer rows.

That might work on a idle system but I would have to disagree with that statement.  In theory it may be more efficient but it practice large long running transactions cause replication lag issues as well as vacuuming issues by holding on to older xmin value.  Basically, they are bad for high transaction systems.  





pgsql-admin by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Transaction Size in PostgreSQL
Next
From: Firthouse banu
Date:
Subject: Pg_dump