pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Fernández <fmartin91@gmail.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: VACUUM FREEZE and replication lag
Date: Mon, 04 Mar 2019 17:53:54 -0800
Message-ID: <5c7dd55a59ae5a0000b663c7@polymail.io> (raw)

Hello everyone,

We have a very big table in our pg92 database that requires a manual vacuum freeze in order to keep sane number of transaction ids available. Yesterday we did a vacuum freeze on this table that took roughly 9 hours. After performing the operation we got back roughly 0.5 billion transaction ids. I was wondering how much this operation can affect replication lag? If vacuum freeze needs to mark a lot of tuples to the xfrozenid, will this mean that a lot of informaton is going to be stremead in the way files? Just trying understand the relation. As soon as we started the operation, our standbys that have the lower io got significantly impacted for several hours. 

Thanks!

Martín

Message-ID: <5c7dd55a59ae5a0000b663c7@polymail.io>
Permalink:  ../5c7dd55a59ae5a0000b663c7@polymail.io/
Also on:    postgresql.org/message-id/5c7dd55a59ae5a0000b663c7@polymail.io

 · 

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-general@postgresql.org
  Cc: fmartin91@gmail.com
  Subject: Re: VACUUM FREEZE and replication lag
  In-Reply-To: <5c7dd55a59ae5a0000b663c7@polymail.io>
  References: <5c7dd55a59ae5a0000b663c7@polymail.io>

* 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