pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Haifeng Liu <liuhaifeng@live.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: How to prevent vacuum again and again on the unchanged tables?
Date: Wed, 8 May 2013 12:41:28 +0800
Message-ID: <BLU0-SMTP10794DFB213526581A52553B9BB0@phx.gbl> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

I noticed postgresql would do vacuum to prevent wraparound of the transaction id, and I also tried to use vacuum freeze, I am not quite sure about freeze, 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 millions rows, and old partitions won't be updated, they may be treat as readonly table.

Meanwhile, there is hot-stanby server, we treat it as a readonly db. when we query on that db, we often got version conflict error, even on the old partitions.

Is there any way better to deal this?

-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



Message-ID: <BLU0-SMTP10794DFB213526581A52553B9BB0@phx.gbl>
Permalink:  ../BLU0-SMTP10794DFB213526581A52553B9BB0@phx.gbl/
Also on:    postgresql.org/message-id/BLU0-SMTP10794DFB213526581A52553B9BB0@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: liuhaifeng@live.com
  Subject: Re: How to prevent vacuum again and again on the unchanged tables?
  In-Reply-To: <BLU0-SMTP10794DFB213526581A52553B9BB0@phx.gbl>
  References: <BLU0-SMTP10794DFB213526581A52553B9BB0@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox