Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpick-0007WF-Dc for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Sep 2016 21:12:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bpicj-0006Df-2I for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Sep 2016 21:12:09 +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 1bpibI-0002vS-VD; Thu, 29 Sep 2016 21:10:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpibG-0004Bu-Cj; Thu, 29 Sep 2016 21:10:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u8TLAY8e012302; Thu, 29 Sep 2016 17:10:34 -0400 From: Tom Lane To: Thomas Kellerer cc: pgsql-general@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument" In-reply-to: References: Comments: In-reply-to Thomas Kellerer message dated "Thu, 29 Sep 2016 21:50:34 +0200" Date: Thu, 29 Sep 2016 17:10:34 -0400 Message-ID: <12301.1475183434@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Thomas Kellerer writes: > for some reason pg_upgrade failed on Windows 10 for me, with an error message that one specifc _vm file couldn't be copied. Hmm ... a _vm file would go through rewriteVisibilityMap(), which is new code for 9.6 and hasn't really gotten that much testing. Its error reporting is shamefully bad --- you can't tell which step failed, and I wouldn't even put a lot of faith in the errno being meaningful, considering that it does close() calls before capturing the errno. But what gets my attention in this connection is that it doesn't seem to be taking the trouble to open the files in binary mode. Could that lead to the reported failure? Not sure, but it seems like at the least it could result in corrupted VM files. Has anyone tested vismap upgrades on Windows, and made an effort to validate that the output wasn't garbage? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers