Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0zHb-0006MH-E0 for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 01:54:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h0zHY-0002mn-PH for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 01:54:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0zHY-0002mb-B0 for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 01:54:12 +0000 Received: from mail-it1-x12b.google.com ([2607:f8b0:4864:20::12b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0zHR-0004Q0-KE for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 01:54:11 +0000 Received: by mail-it1-x12b.google.com with SMTP id z131so1868608itf.5 for ; Mon, 04 Mar 2019 17:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:message-id:subject:from:to:date; bh=oyhijf9xUbijVaOzBwvFRpnkvvMEOBPCX2AZ8EcwvCs=; b=uaywCXzHo9BEDSZJICiXAyqBnFiuLxlVq2yYCXi8KV7X4YqRlqwt0ot8JDjty6YZR6 TK/pDpm1blUpRaFWkfkNQut4Y9dUVZEvx4FRVecTTKp20OtLzA50rxW/3WRQEIBTqQQf uAdKfVGliz4MGx3sw6pd0RRi5qtn1IIa/nvqjJ4v/WbH7/2JV3LxJB1rn2kyXU45MZH2 4bDHBO3Rqo6Z8K9FEPqU8qQwPUGvVfeiRxxVucVulvVrwfQ+Hxn4S/l/E0NUVFVuepPx yTXTjwtKxhh/Pzr5H4CBwEAx5T6zADRMkhsWgVud3FZ8UD4A+JhBvuB2D0xSNWTiVvUw mhRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:message-id:subject:from:to:date; bh=oyhijf9xUbijVaOzBwvFRpnkvvMEOBPCX2AZ8EcwvCs=; b=uCia9OS8Wry3A7SCt48l/CxYWQvw8eD3XK5cJaPQ1InwJVQirxpjhX1GkLq0h0bMhz JVtMDbFphMtdYgAVT0rI3rOzB/yBku0jvzQaePH45dJginPq4uMG5hgy43BJY2nzqJN0 lmO4oL9Pz2/v1BYyD6YMtt/p8ulEVbewM6DEwMa3/8QIlDipexGNXGKa3ENl1vkDElL9 tTX+K8HpC3n+Eocs6/H2JQDT43OD81v+H2VdTR7S77ioG4oXbUGgotvFV2JkaPEt897r PlY+QID5YEaU6KACliSKbbHxb4xUuTxlys8mB8fmfZqM8VPnF/0BqVySjyg5LYzsw+rg k5oQ== X-Gm-Message-State: APjAAAVCplQmF8Mo7x51SfNALaJ3HjJJkMzwTP0eUJf479uPnjrmQSih 4W+agvdiFyWuWHt0TICsutVjOJTp X-Google-Smtp-Source: APXvYqyEis4ekyQZVHjA6xSYVOPAbk0O2igl8dV3cdJjlF3tqwt5B3obhr31fetWYboMTOrnB4JixQ== X-Received: by 2002:a24:4161:: with SMTP id x94mr1291469ita.69.1551750844478; Mon, 04 Mar 2019 17:54:04 -0800 (PST) Received: from localhost (135.166.192.35.bc.googleusercontent.com. [35.192.166.135]) by smtp.gmail.com with ESMTPSA id 14sm4067265ity.24.2019.03.04.17.54.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 17:54:03 -0800 (PST) Mime-Version: 1.0 Message-ID: <5c7dd55a59ae5a0000b663c7@polymail.io> X-Polymail-Id: <5c7dd55a59ae5a0000b663c7@polymail.io> Subject: VACUUM FREEZE and replication lag From: =?UTF-8?q?Mart=C3=ADn_Fern=C3=A1ndez?= To: "pgsql-generallists.postgresql.org" Date: Mon, 04 Mar 2019 17:53:54 -0800 X-Mailer: Polymail Content-Type: multipart/alternative; boundary=bad75c8c4f56918ec44d07286f2d82346983fcd449873c08955d01cbee1a List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --bad75c8c4f56918ec44d07286f2d82346983fcd449873c08955d01cbee1a Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 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. Yesterda= y we did a vacuum freeze on this table that took roughly 9 hours. After per= forming the operation we got back roughly 0.5 billion transaction ids. I wa= s wondering how much this operation can affect replication lag? If vacuum f= reeze 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 un= derstand the relation. As soon as we started the operation, our standbys th= at have the lower io got significantly impacted for several hours.=C2=A0 Thanks! Mart=C3=ADn --bad75c8c4f56918ec44d07286f2d82346983fcd449873c08955d01cbee1a Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 3D""
Hello everyone,

We have a very big table in our pg= 92 database that requires a manual vacuum freeze in order to keep sane numb= er of transaction ids available. Yesterday we did a vacuum freeze on this t= able that took roughly 9 hours. After performing the operation we got back = roughly 0.5 billion transaction ids. I was wondering how much this operatio= n can affect replication lag? If vacuum freeze needs to mark a lot of tuple= s 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 significa= ntly impacted for several hours. 

Thanks!
=
Mart=C3=ADn
--bad75c8c4f56918ec44d07286f2d82346983fcd449873c08955d01cbee1a--