Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMKbQ-0002my-4n for pgsql-performance@arkaria.postgresql.org; Wed, 18 Sep 2013 16:27:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VMKbP-0005em-LQ for pgsql-performance@arkaria.postgresql.org; Wed, 18 Sep 2013 16:27:43 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMKbO-0005eg-QB for pgsql-performance@postgresql.org; Wed, 18 Sep 2013 16:27:42 +0000 Received: from smtp.peak6.com ([38.98.137.6]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMKbK-0004bv-76 for pgsql-performance@postgresql.org; Wed, 18 Sep 2013 16:27:42 +0000 X-AuditID: 0a64cb20-b7ff46d00000153d-d0-5239d477c8af Message-ID: <5239D477.7040602@optionshouse.com> Date: Wed, 18 Sep 2013 11:27:35 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:23.0) Gecko/20100101 Thunderbird/23.0 MIME-Version: 1.0 To: , Subject: Re: autovacuum and dead tuples References: <20130918084242.5a830134ae84016b0174832fdc1a3173.28709778ba.wbe@email11.secureserver.net> In-Reply-To: <20130918084242.5a830134ae84016b0174832fdc1a3173.28709778ba.wbe@email11.secureserver.net> Content-Type: text/plain; charset="UTF-8"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.201.64] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBIsWRmVeSWpSXmKPExsXClcIroVt+xTLIYPNxC4vGtldMFtdnnmN2 YPK4sG8au8eyZRsZA5iiGhhtEvPy8ksSS1IVUlKLk22V/AtKMvPzij3yS4tTFVwyi5NzEjNz U4uUFDJTbJWMlRQKchKTU3NT80pslRILClLzUpTsuBQwgA1QWWaeQmpecn5KZl66rZJnsL+u hYWppa6hkl08MkjoZMmYdfQ+c8Fs9opvr58yNzC+Zu1i5OSQEDCRWPD8NTOELSZx4d56NhCb V0BfYkVTAzuIzSKgKnGsdzVYDZuArsSk/hVgNUICKhJ9Z28wgdj8AsIS+z40gdWICsRIzPl6 lhVijqDEyZlPWLoYOThEBJwk2qYmg4SFBQwlHt26wgwxJlWipf0BWAmnQJrEt/kBIGFmAQuJ xW8OskPY8hLb386BKleVWNE8kQ3iYgWJ/1feMU1gFJyFZNksJO2zkLQvYGRexSheXJaYnJFp WlCcW1JgpFeQmphtppeXWrKJERydpxV2MH7vtDrEKMDBqMTDO6HLIkiINbGsuDL3EKMEB7OS CG/oRcsgId6UxMqq1KL8+KLSnNTiQ4w+wFCayCwlmpwPTBx5JfGGxqYGppamhqbmpoZGOISV xHn3MS0LFBJIB6aL7NTUgtQimHFMHJxSDYwnVjBPjuK516W2/YeNwClLgb+cexVLlXo/hR+a oJozKyxxU4i28PQGZu23jl5z0iq3mtbvv6/wakHe66b/0w99cQo2n5wgHaynU+Gs9+WatJvA gVfrEhze73JMrlid7WT45MmfA3tv7Xm3SuO7vOH0ewfcsh4FvNu2g3H7YVmPzVfOLUhx3N+q xFKckWioxVxUnAgAjJ+44vsCAAA= X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 09/18/2013 10:42 AM, fburgess@radiantblue.com wrote: > My colleague is under the impression that dead tuples are only cleaned up via vacuum > full only, while I suggested that the autovaccum process was cleaning up > these dead tuples. Is this true? You are correct. Only VACUUM FULL (or CLUSTER) physically removes dead tuples from the table, but a regular VACUUM enters them into the free space map for reuse, so they wouldn't show up in the dead_tuple_count column in pgstattuple. It's possible your colleague was confused by the physical removal versus reassignment. Keep in mind that the dead tuples are still in the table, but reusable. The free_space column and free_percent is a better description of table bloat from data turnover cleaned up by autovacuum. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604 312-676-8870 sthomas@optionshouse.com ______________________________________________ See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance