Logical Replication and table bloat

From: Martín Fernández <fmartin91(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Logical Replication and table bloat
Date: 2020-06-05 19:53:36
Message-ID: 960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

Yesterday we stumbled upon a performance issue that we were not expecting. We are replicating our database using AWS DMS which uses logical replication to capture changes. We have some hot tables that get updated very regularly and with the DMS turned on we started noticing that in those table, table bloat increased considerably ~15 times more free_tuples than the average.

When doing logical replication, the subscriber will hold the tuples that could be flagged for reuse until they are sent ? Just trying to understand a little bit better how the logical replication is affecting the vacuuming.

Thanks before hand!

Best,
Martín

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2020-06-05 19:54:27 Re: Oracle vs. PostgreSQL - a comment
Previous Message Paul van der Linden 2020-06-05 19:46:42 Re: Possible improvement