pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@postgresql.org
Subject: Re: pg_upgrade from 9.5 to 9.6 fails with "invalid argument"
Date: Thu, 29 Sep 2016 13:55:19 -0700
Message-ID: <bb41f587-d7bb-3de6-6cf8-a0e0fb86607f@aklaver.com> (raw)
In-Reply-To: <nsjrbh$8li$1@blaine.gmane.org>
References: <nsjrbh$8li$1@blaine.gmane.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

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=0b8b...


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



view thread (23+ messages)  latest in thread

Message-ID: <bb41f587-d7bb-3de6-6cf8-a0e0fb86607f@aklaver.com>
Permalink:  ../bb41f587-d7bb-3de6-6cf8-a0e0fb86607f@aklaver.com/
Also on:    postgresql.org/message-id/bb41f587-d7bb-3de6-6cf8-a0e0fb86607f@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, spam_eater@gmx.net
  Subject: Re: pg_upgrade from 9.5 to 9.6 fails with "invalid argument"
  In-Reply-To: <bb41f587-d7bb-3de6-6cf8-a0e0fb86607f@aklaver.com>
  References: <nsjrbh$8li$1@blaine.gmane.org> <bb41f587-d7bb-3de6-6cf8-a0e0fb86607f@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox