Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hugir-0003Wu-Bb for pgsql-admin@arkaria.postgresql.org; Mon, 05 Aug 2019 17:24:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hugio-0003FA-Ff for pgsql-admin@arkaria.postgresql.org; Mon, 05 Aug 2019 17:24:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hugio-0003EY-7C for pgsql-admin@lists.postgresql.org; Mon, 05 Aug 2019 17:24:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hugil-0008Oh-Fo for pgsql-admin@lists.postgresql.org; Mon, 05 Aug 2019 17:24:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x75HOR1a027377; Mon, 5 Aug 2019 13:24:27 -0400 From: Tom Lane To: Wells Oliver cc: Ron , pgsql-admin@lists.postgresql.org Subject: Re: Diagnosing a massive toast file In-reply-to: References: <3da6ffe8-28ef-fb9a-e6e8-1f0d243cc8e9@gmail.com> <6018.1565023741@sss.pgh.pa.us> Comments: In-reply-to Wells Oliver message dated "Mon, 05 Aug 2019 10:03:02 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27375.1565025867.1@sss.pgh.pa.us> Date: Mon, 05 Aug 2019 13:24:27 -0400 Message-ID: <27376.1565025867@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Wells Oliver writes: > As a follow up, n_dead_tup from pg_stat_sys_tables for this TOAST table is > 7447444, live tuples, 623982, and tup_del 20823469. vacuum_count is 0. > Why can't I free those rows up? Old open transaction somewhere (possibly a prepared transaction?). Or a replication slot that's holding back the xmin horizon due to not keeping up. regards, tom lane