Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVRZv-0006Iw-Ls for pgsql-admin@arkaria.postgresql.org; Thu, 04 Aug 2016 22:57:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVRZv-0001cA-8a for pgsql-admin@arkaria.postgresql.org; Thu, 04 Aug 2016 22:57:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bVRYD-000625-Cj for pgsql-admin@postgresql.org; Thu, 04 Aug 2016 22:55:41 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bVRYA-0004O4-Nm for pgsql-admin@postgresql.org; Thu, 04 Aug 2016 22:55:40 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1bVRY8-0002L7-VY; Thu, 04 Aug 2016 18:55:36 -0400 Date: Thu, 4 Aug 2016 18:55:36 -0400 From: Bruce Momjian To: Stephen Frost Cc: Jerry Sievers , pgsql-admin@postgresql.org Subject: Re: Pg-Upgrade standbys via rsync... and avoid sending UNlogged data? Message-ID: <20160804225536.GA22579@momjian.us> 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> <20160726231129.GH4028@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <20160726231129.GH4028@tamriel.snowman.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -3.1 (---) 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 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 26, 2016 at 07:11:29PM -0400, Stephen Frost wrote: > * Bruce Momjian (bruce@momjian.us) wrote: > > 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. > > It'd probably be good to document what happens with unlogged tables. Attached patch applied to head. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + --bp/iNruPH9dso1Pn Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="rsync.diff" diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml new file mode 100644 index fcc94ee..7f1c52a *** a/doc/src/sgml/ref/pgupgrade.sgml --- b/doc/src/sgml/ref/pgupgrade.sgml *************** rsync --archive --delete --hard-links -- *** 504,509 **** --- 504,511 ---- + Unfortunately, rsync also needlessly copies the + files associated with temporary and unlogged tables. If you have tablespaces, you will need to run a similar rsync command for each tablespace directory. If you have relocated pg_xlog outside the data directories, --bp/iNruPH9dso1Pn Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin --bp/iNruPH9dso1Pn--