Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument"
Date: 2016-09-29 21:10:34
Message-ID: 12301.1475183434@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Thomas Kellerer <spam_eater(at)gmx(dot)net> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vinicius Segalin 2016-09-29 21:23:51 Re: Query generator
Previous Message Thomas Kellerer 2016-09-29 21:05:35 Re: pg_upgrade from 9.5 to 9.6 fails with "invalid argument"

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-09-29 21:40:15 Re: [HACKERS] pg_upgrade from 9.5 to 9.6 fails with "invalid argument"
Previous Message Thomas Kellerer 2016-09-29 21:05:35 Re: pg_upgrade from 9.5 to 9.6 fails with "invalid argument"