Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS64U-0003Mj-IK for pgsql-admin@arkaria.postgresql.org; Tue, 26 Jul 2016 17:23:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bS64T-0005Uq-JX for pgsql-admin@arkaria.postgresql.org; Tue, 26 Jul 2016 17:23:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bS64T-0005Uj-0T for pgsql-admin@postgresql.org; Tue, 26 Jul 2016 17:23:09 +0000 Received: from resqmta-po-02v.sys.comcast.net ([2001:558:fe16:19:96:114:154:161]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bS64N-0004Df-6p for pgsql-admin@postgresql.org; Tue, 26 Jul 2016 17:23:07 +0000 Received: from resomta-po-08v.sys.comcast.net ([96.114.154.232]) by resqmta-po-02v.sys.comcast.net with SMTP id S63ZbYFeb1zBdS64FbHkur; Tue, 26 Jul 2016 17:22:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1469553775; bh=t6/3mDzRcZdbDDmIKm4wjDmLipjveomBNyK36l0zzVc=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=jxRlYq+BPCtoXpS+KKBoBYoogM/lnQLcrPog1DUHmUw4rzgjrkI5io9K+SWLTv21O DIrNAfIRO0plUUsI2yE2kHVKdrNEBpvzj9p9Au3Tulc2ZY7p35k2TmhdTl7EgKuG1X 42NM6u85tb7j+t5VKNJ/GvgCk4XgKKIzXKCm+aZnOAoaxqeTSOzFANWvsCRFRdEv2A la1+MTXL/Fl8IiEcT1ojDpvRwB1Pny6uCwZmZP4lqrT9Jrz/67Mp/eqJCk9kkDuuYK tD6cpCpF3IFtDbcNayQxZxrx2CsOsz0EkKlpfAM8AHVSWPGBjWtBgt58wcd0W9Pp6N OaS+TCYW4Uc2g== Received: from jerry.enova.com ([12.187.116.132]) by comcast with SMTP id S63zbISgFbsNTS642bGqbL; Tue, 26 Jul 2016 17:22:53 +0000 Received: by jerry.enova.com (Postfix, from userid 1001) id 8F5F2740212; Tue, 26 Jul 2016 12:22:39 -0500 (CDT) From: Jerry Sievers To: Bruce Momjian Cc: Jerry Sievers , Stephen Frost , pgsql-admin@postgresql.org Subject: Re: Pg-Upgrade standbys via rsync... and avoid sending UNlogged data? References: <86d1m5b6bi.fsf@jerry.enova.com> <20160725163700.GZ4028@tamriel.snowman.net> <20160725164329.GA4028@tamriel.snowman.net> <86eg6hr58q.fsf@jerry.enova.com> <20160726161946.GA3511@momjian.us> Date: Tue, 26 Jul 2016 12:22:39 -0500 In-Reply-To: <20160726161946.GA3511@momjian.us> (Bruce Momjian's message of "Tue, 26 Jul 2016 12:19:46 -0400") Message-ID: <86h9bciaao.fsf@jerry.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-CMAE-Envelope: MS4wfPBvQqdzHAytR9s+O5jID4RshMgrPN+4E8T1OL6cpY++VK73kkUDT6B6zj0FwTu08CUctcaze1Ul5KFWmiI9w3i1eIT07PSSiR/vIAcOkw2Iz6cpY4Ph 8G6wjbkabaBNyA6dgL2BlHW0lz3OFdfS7NLVjgbmV/8GcarciNM+bhIFSyMBOOGkyasaeO0PXgARzQBTRJTaS/Lse7zfcBcR0Bv30a4uh/sH3Qe5MAYt2bJA 1ZyTLPS+hA37OquBflzJ6S+/o4gopgbiH1bvJuLQr6Iedg/XtiLd2ZeMQuVMAFYA X-Pg-Spam-Score: -3.0 (---) 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 Bruce Momjian writes: > On Mon, Jul 25, 2016 at 12:34:45PM -0500, Jerry Sievers wrote: > >> Stephen Frost writes: >> >> > * Stephen Frost (sfrost@snowman.net) wrote: >> > >> >> > I have among others, a 5TB system w/about 40G of unlogged data. >> >> >> >> Honestly, sending an extra 40G out of 5TB (we're talking less than 1% >> >> here...) might be worth it to keep the process simple. >> > >> > Of course, I realize right after sending this that you aren't sending >> > the 5TB. :) >> >> Roger that! Really, the hard link pg-upgrade option and rsync method >> for standbys is pure beauty :-) >> >> We have only the post-analyze and this unlogged data problem to deal >> with. >> >> The warehouse is our only system with any substantial amount of unlogged >> data. >> >> Reducing post-analyze delay was solved by me here with our groovy >> threaded AnalyzMaTron. I can get a >5TB system done in about 45 minutes >> w/20 threads. > > The only thing I can suggest is to document this limitation, if people > think it is worth it. +1 A couple sentences right near the rsync piece in pg_upgrade docs would do it. Caveat:UNNLogged data will be unnecessarily transfered via rsync and then immediately discarded from standbys when the standbys are started unless those tables are truncated on the master before the upgrade. -- Jerry Sievers e: jerry.sievers@comcast.net p: 312.241.7800 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin