Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YDFma-0005cP-54 for pgsql-admin@arkaria.postgresql.org; Mon, 19 Jan 2015 17:06:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YDFmZ-0008Ei-5n for pgsql-admin@arkaria.postgresql.org; Mon, 19 Jan 2015 17:06:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YDFmU-00088A-VJ for pgsql-admin@postgresql.org; Mon, 19 Jan 2015 17:06:27 +0000 Received: from mail-yk0-x22b.google.com ([2607:f8b0:4002:c07::22b]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YDFmN-00041j-1j for pgsql-admin@postgresql.org; Mon, 19 Jan 2015 17:06:25 +0000 Received: by mail-yk0-f171.google.com with SMTP id 10so1942442ykt.2 for ; Mon, 19 Jan 2015 09:06:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=wLm54S6uhaQSH3L6HE+MoWOPLW3GJ5WCZE5cUqTPccc=; b=Y9DbCumSz8t47m3o2ixMqegTV/py3Ac5Pj73TgOfYfiASwXZM5Fg2HtglunSly4DiI bUZKWdanSCekQ7F+GTqTYAzpo/u0qoLm75zGvihHHvJYVdXi5fk5oRwpZtVBsmIff1Dk YyU97G/s1MPPX7IUrqdDVSo0UPQNpWaxGVswf8nZF9kRN62K9fj6na0ZV0gPlY6AEz4Z 8VblqGuUrX7yjFu5kQMMp30unkUUCKU5A3AopUP/RLQmQn7ZyWfRVzeBf+ceP7RHvXkl y1yDnud9jyBwIdxnpzcu1tFIM8E1UvOI/egF8h5Hj6gWdFl1vQ1jqpZFIgfaie++2z0/ edpA== X-Received: by 10.170.180.5 with SMTP id w5mr9036238ykd.38.1421687177130; Mon, 19 Jan 2015 09:06:17 -0800 (PST) Received: from [192.168.254.3] (h77.89.102.166.static.ip.windstream.net. [166.102.89.77]) by mx.google.com with ESMTPSA id o30sm8075527yha.37.2015.01.19.09.06.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jan 2015 09:06:16 -0800 (PST) Message-ID: <54BD397C.5010907@gmail.com> Date: Mon, 19 Jan 2015 12:06:04 -0500 From: John Scalia User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: pg_upgrade issue solved Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 Hi all, I determined why my v9.4.0 pg_upgrade was failing while trying to migrate from V9.3.3. I'll fess up that it was really my fault, but I'd like to keep others from having the same problem. Here's what basically happened: Earlier this year, the environment my V9.3.3 cluster was running in was upgraded. After that upgrade activity, two of my three database servers could not get their VM's restarted. We have yet to hear why this is still the case. Anyway, as this cluster originally consisted of one primary and two standby servers, it was now down to just the primary. I had chosen to not re-create new VMs to serve as V9.3.3 standbys as I was going to create those new standby VMs after getting 9.4.0 installed and running. I also had not done any re-configuration to the original primary server. Now, as I'm sure you all know, in streaming replication, database updates are first committed on a standby server then on the primary. It turns out that the activities of pg_upgrade still obey this commit sequence. That is, if you're running pg_upgrade on a streaming replication server, you can really only run it on a primary (I think) and the cluster must have at least one standby server available and running. My pg_upgrade was hanging up as it tried to create a new temporary table which the database tried to first commit on the now unavailable standby server. As that didn't exist, the script just hung there waiting for that commit. So, I'll say "My bad..", but I really wish there was some mention of this potential issue on the documentation for pg_upgrade. At least that's what I'm seeing, and I'll welcome any comment from the development community. -- Jay -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin