Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZwCE-0003xS-9c for pgsql-admin@arkaria.postgresql.org; Wed, 08 May 2013 04:41:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UZwCD-0007nY-Lp for pgsql-admin@arkaria.postgresql.org; Wed, 08 May 2013 04:41:41 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZwCB-0007nQ-Lg for pgsql-admin@postgresql.org; Wed, 08 May 2013 04:41:39 +0000 Received: from blu0-omc1-s11.blu0.hotmail.com ([65.55.116.22]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZwC7-0002fW-AI for pgsql-admin@postgresql.org; Wed, 08 May 2013 04:41:37 +0000 Received: from BLU0-SMTP107 ([65.55.116.9]) by blu0-omc1-s11.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 7 May 2013 21:41:34 -0700 X-EIP: [clR6y3ZoKfnrhS3E+yaXDeg5N3BL390MSdE5R/SxWrI=] X-Originating-Email: [liuhaifeng@live.com] Message-ID: Received: from [172.16.4.234] ([180.166.109.193]) by BLU0-SMTP107.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 7 May 2013 21:41:33 -0700 From: Haifeng Liu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: How to prevent vacuum again and again on the unchanged tables? Date: Wed, 8 May 2013 12:41:28 +0800 To: "pgsql-admin@postgresql.org" MIME-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-OriginalArrivalTime: 08 May 2013 04:41:33.0469 (UTC) FILETIME=[50ED0CD0:01CE4BA6] X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org I noticed postgresql would do vacuum to prevent wraparound of the transacti= on id, and I also tried to use vacuum freeze, I am not quite sure about fre= eze, but it seems postgresql will still vacuum the frezzed unchanged tables= automatically. My scenario is, I have a table with daily partitions, those partition table= inherits the parent table, with date check. Each day there is tens of mill= ions rows, and old partitions won't be updated, they may be treat as readon= ly table. Meanwhile, there is hot-stanby server, we treat it as a readonly db. when w= e query on that db, we often got version conflict error, even on the old pa= rtitions. Is there any way better to deal this? --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin