Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKuVi-0002hp-MG for pgsql-performance@arkaria.postgresql.org; Mon, 09 Feb 2015 20:00:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YKuVh-00064o-VI for pgsql-performance@arkaria.postgresql.org; Mon, 09 Feb 2015 20:00:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YKuVg-00061y-Ex for pgsql-performance@postgresql.org; Mon, 09 Feb 2015 20:00:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YKuVd-0002ru-7g for pgsql-performance@postgresql.org; Mon, 09 Feb 2015 20:00:42 +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 t19K0YuJ014442; Mon, 9 Feb 2015 15:00:35 -0500 From: Tom Lane To: Alvaro Herrera cc: bkrug , pgsql-performance@postgresql.org Subject: Re: Avoiding Refreezing XIDs Repeatedly In-reply-to: <20150209191035.GG3391@alvh.no-ip.org> References: <1423497516487-5837222.post@n5.nabble.com> <1423507553954-5837247.post@n5.nabble.com> <1423508825585-5837251.post@n5.nabble.com> <20150209191035.GG3391@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Mon, 09 Feb 2015 16:10:35 -0300" Date: Mon, 09 Feb 2015 15:00:34 -0500 Message-ID: <14441.1423512034@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Alvaro Herrera writes: > bkrug wrote: >> The problem I'm facing is that I have many large (several GB) tables that are >> not being changed (they are several days old) but auto-vacuum keeps scanning >> and updating them every time the xid wraps around and thus my rsync back-up >> process sees that the disk files have changed and must copy them. > We have considered changing this, but it needs a concerted effort. It's > not a simple problem. I'm not following. Yes, the tables will be *scanned* at least once per XID wraparound cycle, but if they are in fact static then they should not be changing once the tuples have been frozen the first time. If this is incurring continuing rsync work then something else is going on. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance