Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCvb6-0005GJ-9H for pgsql-performance@arkaria.postgresql.org; Tue, 14 Jun 2016 21:10:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCvb5-000840-MO for pgsql-performance@arkaria.postgresql.org; Tue, 14 Jun 2016 21:10:07 +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 1bCvZP-0006Bw-Hm for pgsql-performance@postgresql.org; Tue, 14 Jun 2016 21:08:23 +0000 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bCvZI-0000Vd-BZ for pgsql-performance@postgresql.org; Tue, 14 Jun 2016 21:08:22 +0000 Received: by mail-qk0-x22c.google.com with SMTP id s186so2488897qkc.1 for ; Tue, 14 Jun 2016 14:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RuvtobDu/l3jgLGFByUmbHp577zPcYTR/meSYiSy5RQ=; b=df9Yr6Bv2ktjEKQKd5jGQ+WAa3rKOKzqTzyYeTBbogazibm3GF0+oiaW7qF0wgt1PZ iazYDGPcxAxdxcj4OlfZKsnkJhKBn0WcOm48vUZHzH2QumNRJmH+PWx+r38ZgLB6MORx khFzkt7xLhIzwluYzAfqcQ0nmi4/SbZRLDoMhOXKw254K7Lgvy/5Prn6M4zRcFrvWuhv UHbPnvRw+jy1k83Lz30hDFyKgvInW030v507aS1PH478a2rcnjt2Tkyj4d/4VBR07aHv F3FxD5A7bWzHF9scRuNRfiw8SrDCRZUwTVKdGCKIN9x9PytTuxHrWAkwcHSxNSDcMlY3 3AyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RuvtobDu/l3jgLGFByUmbHp577zPcYTR/meSYiSy5RQ=; b=f3KWsIa2GpTHby1v70zoVeyLHRyasMV5WPKDyBTX/mlHoAmI2VxukmT1xXvq51u5u0 ZgR62bdxMLN0fU5gPaUtPnZhVGmJ/wo7upWeTYb1sYAUabumuMaugr3w+gYF5Bw3JlYu wUPGhKARVSq5Zj0Rk7qjef4zn0Yrvnqv+1TcQTbN6O0wKRdJUahTyNLiPf2u7rnfdLUu 0nFRYdKfvzZTXfzHh2H7ZRXLkhF7opExE2HIZgAKVxEvk7smeMFQZ9LGCUtlu08as7u3 82XBgmLFEm2fmuMVPDQeTSoTkXhmcs29UGNmFSZF46sur3BEJsRa+5eHom/+m6L5P2UR 302Q== X-Gm-Message-State: ALyK8tIe/B7zQ2h2IQJhoB9dRzMjkmhxRPcSGwNP3sJjPQZi4E4GrTX8RmSKhBWXidXJnqLUq6Bte5p3JZdtBw== X-Received: by 10.200.46.235 with SMTP id i40mr22545409qta.13.1465938495437; Tue, 14 Jun 2016 14:08:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.23.115 with HTTP; Tue, 14 Jun 2016 14:08:15 -0700 (PDT) In-Reply-To: <4241f359-ec01-dc73-f742-20fdbc81755a@BlueTreble.com> References: <20160304225811.GE865@telsasoft.com> <56E2F672.7080305@BlueTreble.com> <57014F54.3050204@BlueTreble.com> <4241f359-ec01-dc73-f742-20fdbc81755a@BlueTreble.com> From: Tory M Blue Date: Tue, 14 Jun 2016 14:08:15 -0700 Message-ID: Subject: Re: Clarification on using pg_upgrade To: Jim Nasby Cc: "pgsql-performance@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Tue, Jun 14, 2016 at 2:03 PM, Jim Nasby wrote: > On 4/19/16 11:01 PM, Tory M Blue wrote: >>>> >>>> >> Slon is also starting to not be viable as it takes some indexes over >>>> >> 7 >>>> >> hours to complete. So this upgrade path seemed to really be nice. >>> >>> > >>> > >>> > If you're standing up a new replica from scratch on the latest version, >>> > I'm >>> > not really sure why that matters? >> >> Not sure why the 7-13 hours causes an issue? Because if I'm upgrading >> via slon process, I have to add and drop a node. If I'm dropping my >> secondary (slave) I have to move reporting to the master, so now the >> master is handing normal inserts and reports. Next item, I'm without >> a replica for 13+ hours, that's not good either. > > > Don't drop and add a node, just do a master switchover. AFAIK that's nearly > instant as long as things are in sync. > -- > Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX > Experts in Analytics, Data Architecture and PostgreSQL > Data in Trouble? Get it in Treble! http://BlueTreble.com > 855-TREBLE2 (855-873-2532) mobile: 512-569-9461 Right, that's what we do, but then to upgrade, we have to drop/add the node, because it's being upgraded. If I'm updating the underlying OS, I have to kill it all. If I'm doing a postgres upgrade, using an old version of slon, without using pg_upgrade, I have to drop the db, recreate it, which requires a drop/add. I'm trying to figure out how to best do it using pg_upgrade instead of the entire drop/add for postgres upgrades (which are needed if you are using slon as an upgrade engine for your db). Tory -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance