pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Fernández <fmartin91@gmail.com>
To: pgsql-general@postgresql.org
Subject: Logical Replication and table bloat
Date: Fri, 5 Jun 2020 16:53:36 -0300
Message-ID: <960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com> (raw)

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




view thread (3+ messages)  latest in thread

Message-ID: <960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com>
Permalink:  ../960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com/
Also on:    postgresql.org/message-id/960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com

 · 

reply

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: fmartin91@gmail.com
  Subject: Re: Logical Replication and table bloat
  In-Reply-To: <960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com>
  References: <960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.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