pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: could not migrate 8.0.13 database with large object data to 9.5.1
Date: Tue, 1 Mar 2016 20:59:27 -0800
Message-ID: <56D6732F.1010503@hogranch.com> (raw)
In-Reply-To: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th>
References: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

(thread moved from pg_bugs)
(upgrading a 8.0.13 database on Windows XP 32bit to 9.5.1 on Windows 8 
64 bit.....)

On 3/1/2016 8:05 PM, Premsun Choltanwanich wrote:
> Modified command by remove -Ft flag as per you suggestion:
> pg_dump -v -h 192.168.200.75 -U clubadmin -d clubprogram | psql -U 
> clubadmin -d clubprogram
>
> Result (got same message even with parameter -b or not):
> pg_dump: reading rewrite rules
> pg_dump: reading policies
> pg_dump: reading large objects
> ...
> pg_dump: creating FUNCTION "public.plpgsql_call_handler()"
> pg_dump: creating FUNCTION "public.plpgsql_validator(oid)"
> ...
> pg_dump: creating FUNCTION "public.pg_file_write(text, text, boolean)"

those all sound like standard postgres functions, its not clear to me 
why pg_dump is generating the CREATE FUNCTION code for them.

> pg_dump: [archiver] could not write to output file: Invalid argument
>

ok, presumably your new box has plenty of disk space?  try this on the 
new 9.5 system...

     "C:\Program Files\PostgreSQL\9.5\bin\pg_dump" -v -h 192.168.200.75 
-U clubadmin -d clubprogram -f "D:\Backups\clubprogram-2016-03-01.sql"

(replace D:\Backups\  with wherever you want to put this potentially 
rather large backup file)

if that works, then ...

         "C:\Program Files\PostgreSQL\9.5\bin\psql" -U clubadmin -d 
clubprogram -f "D:\Backups\clubprogram-2016-03-01.sql"

should load the dumped data onto the new system.


-- 
john r pierce, recycling bits in santa cruz



-- 
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 (10+ messages)  latest in thread

Message-ID: <56D6732F.1010503@hogranch.com>
Permalink:  ../56D6732F.1010503@hogranch.com/
Also on:    postgresql.org/message-id/56D6732F.1010503@hogranch.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-bugs@postgresql.org
  Cc: pierce@hogranch.com, pgsql-general@postgresql.org
  Subject: Re: could not migrate 8.0.13 database with large object data to 9.5.1
  In-Reply-To: <56D6732F.1010503@hogranch.com>
  References: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th> <56D6732F.1010503@hogranch.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