Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhIPQ-0001df-PJ for pgsql-general@arkaria.postgresql.org; Fri, 05 Jun 2020 19:53:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jhIPP-0002nj-LO for pgsql-general@arkaria.postgresql.org; Fri, 05 Jun 2020 19:53:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhIPP-0002nc-Bn for pgsql-general@lists.postgresql.org; Fri, 05 Jun 2020 19:53:43 +0000 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jhIPM-0007nA-Am for pgsql-general@postgresql.org; Fri, 05 Jun 2020 19:53:42 +0000 Received: by mail-qk1-x730.google.com with SMTP id n141so11016371qke.2 for ; Fri, 05 Jun 2020 12:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=CRXxV5jkJAh3uXbl5LedTyejcT0BUmTdvvMKM32Eb8E=; b=SLpYiC0W33fECKcdpAisuVM90GsbtJfhWwdtrG+L6NulgQakKZ3WMcD8wj10FlrHXm eIWhNvNTbjLHhK6zqKkOsxFOuzw/mfEzKR3QkzjoeBn2cc9J1+zxJB+I4tjnlKw8Qu7s b0rg2ViRYK9nl9wImYXxZIvAsqr4B3fQr5R8V+7iZiSD6VXq6/I/1qwux4Xs8a21VnQl kqoU46LfH3/++XbshvzZO5/Y63aDs+O+72J3wimZYraWF0a+bfVca/gsvDQB7tRl5GyK uqYiHeLspG4bdtGZ+CcEMnF/VE8zVaLSOByYecCbAAjIKHvCarBB05KRJ7nzR3snUOWM 9F8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=CRXxV5jkJAh3uXbl5LedTyejcT0BUmTdvvMKM32Eb8E=; b=Zr4S2y/XtM7TBtQKs9ao3NdHsKfL+9Zgcyqrl3wThaSpmq9pj96uGqAEn5N8oAlOhv UH9nCdAfhgtPuwR3kCKDEyDhmKH8q1Sojte5D+EubIkBFMkEKmyp9zOAlIFS8cNPzBg+ prAcAC2Xq439do65jVlfjMwY75WYPdnpPyXqqMa1zth8WC9bQkpo4k7DyUAgLkDTBzqD tfdftC536nUdLL7PWRIfyxQEpPZV/EZauAk7NbHa8LFb0A1kAL6DN/npy+bdnMXsNpc2 p12kYhTCxCPR7PVMaFV+pGl9u9xTNzkHi/0WkDjHcBhpo3xwYSJ9K71mG8qOW2KSe0d0 d40Q== X-Gm-Message-State: AOAM532bX4a6UJYsKsrOAlLfxi5T6kb0df+a7eTWSTMk76i9BBvLxOsQ jA2dj3SwpY/mZHbMQIWllXimUA4xPmA= X-Google-Smtp-Source: ABdhPJx0LF9E+4fanjL+l8i0sQTSZZk5LgmczdSYcWiapgCkPp9tpAFO/JYAzjOBRwWiEoADJfTtyg== X-Received: by 2002:a37:e304:: with SMTP id y4mr11080184qki.57.1591386818920; Fri, 05 Jun 2020 12:53:38 -0700 (PDT) Received: from [10.0.1.3] (r167-57-170-187.dialup.adsl.anteldata.net.uy. [167.57.170.187]) by smtp.gmail.com with ESMTPSA id c4sm573007qko.118.2020.06.05.12.53.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jun 2020 12:53:38 -0700 (PDT) From: =?utf-8?B?TWFydMOtbiBGZXJuw6FuZGV6?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Subject: Logical Replication and table bloat Message-Id: <960E21B1-2AE7-49EE-B9F5-6FD9AD00C366@gmail.com> Date: Fri, 5 Jun 2020 16:53:36 -0300 To: pgsql-general@postgresql.org X-Mailer: Apple Mail (2.3601.0.10) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.=20 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=C3=ADn=