Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bphPD-0001qs-JN for pgsql-general@arkaria.postgresql.org; Thu, 29 Sep 2016 19:54:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bphPC-0006d6-Io for pgsql-general@arkaria.postgresql.org; Thu, 29 Sep 2016 19:54:06 +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 1bphMs-0002ny-Rn for pgsql-general@postgresql.org; Thu, 29 Sep 2016 19:51:43 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bphMl-0002jC-Rv for pgsql-general@postgresql.org; Thu, 29 Sep 2016 19:51:41 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bphMa-0003hp-KX for pgsql-general@postgresql.org; Thu, 29 Sep 2016 21:51:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Thomas Kellerer Subject: pg_upgrade from 9.5 to 9.6 fails with "invalid argument" Date: Thu, 29 Sep 2016 21:50:34 +0200 Lines: 42 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 X-Mozilla-News-Host: news://news.gmane.org:119 X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) X-Pg-Spam-Score: -1.1 (-) 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 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. 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" 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 -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general