Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpiMa-0006Kk-1z for pgsql-general@arkaria.postgresql.org; Thu, 29 Sep 2016 20:55:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bpiMZ-0002EH-JB for pgsql-general@arkaria.postgresql.org; Thu, 29 Sep 2016 20:55: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 1bpiMY-0002DK-0L for pgsql-general@postgresql.org; Thu, 29 Sep 2016 20:55:26 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpiMT-0003qo-Sj for pgsql-general@postgresql.org; Thu, 29 Sep 2016 20:55:24 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 9777C20BA8; Thu, 29 Sep 2016 16:55:20 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Thu, 29 Sep 2016 16:55:20 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=WNkY+jndNFKCQpjnrAL/eR7jCUY=; b=TymCMn DZwj58iS59qnAClEohuGrT7u1s6gTKVUAMi3mkFAF2HjOzgHHbOyMzA9XPQTY1Ow CmeGZUHKnFajSlyF81JWUFPoqXP8X+E6YAA2++ps+R+/kBK8sAtB0KYOU/7TaRnk F3KroZb9wDLS5tNaGir553lW5sGdUa4eViY7A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=WNkY+jndNFKCQpj nrAL/eR7jCUY=; b=b0KR1leOYApjy5YFC8aXqpOtiluO2Y1kTysPh4O2fJ16tKx ufxgElRSKKRl1bxUuuaMKHJKQUyYnORjVxTohDUeDFCaqpxTJD3TFe560KvrkkdZ Zg/MhjzPElFRaM5R0n24KEWXgPtTLEvndurdMMxoOMalTx0Cprc+sLUtiBZU= X-Sasl-enc: ArCON4YtMEFnpLHn89rtNr8UvULo4HoTJWUh5kCubHR/ 1475182520 Received: from killi.site (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 254CAF29D9; Thu, 29 Sep 2016 16:55:20 -0400 (EDT) Subject: Re: pg_upgrade from 9.5 to 9.6 fails with "invalid argument" To: Thomas Kellerer , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Thu, 29 Sep 2016 13:55:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: 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-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 09/29/2016 12:50 PM, Thomas Kellerer wrote: > Hello, > > for some reason pg_upgrade failed on Windows 10 for me, with an error > message that one specifc _vm file couldn't be copied. > > When I try to copy that file manually everything works fine. > > After running a "vacuum full" on the table in question the upgrade goes > through. Assuming you did that on old cluster? Upgrading to 9.6? Where both clusters installed the same way? > > One thing I noticed in the --verbose output of pg_upgrade is that the > old cluster - despite being a 9.5 one - has the "pg_control version > number 942" Which is correct: https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/pg_control.h;h=0b8bea74a891831bc3cbe8fd4d4233475a8329c4;hb=ba37ac217791dfdf2b327c4b75e7083b6b03a2f5 What was the complete command line invocation of pg_upgrade? > > Here is the part of the pg_upgrade output: > > ..... > > copying "d:/Daten/db/pgdata95/base/16410/85351" to > "d:/Daten/db/pgdata96/base/16411/85351" > d:/Daten/db/pgdata95/base/16410/85351_fsm > copying "d:/Daten/db/pgdata95/base/16410/85351_fsm" to > "d:/Daten/db/pgdata96/base/16411/85351_fsm" > d:/Daten/db/pgdata95/base/16410/85351_vm > copying "d:/Daten/db/pgdata95/base/16410/85351_vm" to > "d:/Daten/db/pgdata96/base/16411/85351_vm" > d:/Daten/db/pgdata95/base/16410/85358 > copying "d:/Daten/db/pgdata95/base/16410/85358" to > "d:/Daten/db/pgdata96/base/16411/85358" > d:/Daten/db/pgdata95/base/16410/85358.1 > copying "d:/Daten/db/pgdata95/base/16410/85358.1" to > "d:/Daten/db/pgdata96/base/16411/85358.1" > d:/Daten/db/pgdata95/base/16410/85358.2 > copying "d:/Daten/db/pgdata95/base/16410/85358.2" to > "d:/Daten/db/pgdata96/base/16411/85358.2" > d:/Daten/db/pgdata95/base/16410/85358.3 > copying "d:/Daten/db/pgdata95/base/16410/85358.3" to > "d:/Daten/db/pgdata96/base/16411/85358.3" > d:/Daten/db/pgdata95/base/16410/85358_fsm > copying "d:/Daten/db/pgdata95/base/16410/85358_fsm" to > "d:/Daten/db/pgdata96/base/16411/85358_fsm" > d:/Daten/db/pgdata95/base/16410/85358_vm > copying "d:/Daten/db/pgdata95/base/16410/85358_vm" to > "d:/Daten/db/pgdata96/base/16411/85358_vm" > > error while copying relation "public.wb_downloads" > ("d:/Daten/db/pgdata95/base/16410/85358_vm" to > "d:/Daten/db/pgdata96/base/16411/85358_vm"): Invalid argument > Failure, exiting > > The file in question is 65.536 bytes in size. > > I saved all log files and the complete output from the failed run, so if > you are interested I can supply them (I ran pg_upgrade with the --retain > option). > > Regards > Thomas > > > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general