From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Martín Fernández <fmartin91@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Logical Replication and table bloat
Date: Fri, 5 Jun 2020 12:59:52 -0700
Message-ID: <9ff805fa-85b0-28b9-44e6-1130a2f14f9d@aklaver.com> (raw)
In-Reply-To: <960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com>
References: <960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com>
On 6/5/20 12:53 PM, Martín Fernández wrote:
> 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.
A question for the AWS folks:
https://forums.aws.amazon.com/forum.jspa?forumID=60>
> Thanks before hand!
>
> Best,
> Martín
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, fmartin91@gmail.com
Subject: Re: Logical Replication and table bloat
In-Reply-To: <9ff805fa-85b0-28b9-44e6-1130a2f14f9d@aklaver.com>
References: <960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com> <9ff805fa-85b0-28b9-44e6-1130a2f14f9d@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox