From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Premsun Choltanwanich <Premsun@nsasia.co.th>
To: pierce@hogranch.com
To: pgsql-bugs@postgresql.org
Subject: Re: Re: could not migrate 8.0.13 database with large object data to 9.5.1
Date: Fri, 4 Mar 2016 10:10:42 +1300
Message-ID: <56D8A852.40308@catalyst.net.nz> (raw)
In-Reply-To: <56D67870.1040100@catalyst.net.nz>
References: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th>
<56D67870.1040100@catalyst.net.nz>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 02/03/16 18:21, Mark Kirkwood wrote:
> On 02/03/16 17:05, Premsun Choltanwanich wrote:
>> Hi John,
>>
>> 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):
>
> (snippage)
>
>> pg_dump: creating FUNCTION "public.pg_database_size(oid)"
>> pg_dump: creating FUNCTION "public.pg_dir_ls(text, boolean)"
>> pg_dump: creating FUNCTION "public.pg_file_length(text)"
>> pg_dump: creating FUNCTION "public.pg_file_read(text, bigint, bigint)"
>> pg_dump: creating FUNCTION "public.pg_file_rename(text, text)"
>> pg_dump: creating FUNCTION "public.pg_file_rename(text, text, text)"
>> pg_dump: creating FUNCTION "public.pg_file_stat(text)"
>> pg_dump: creating FUNCTION "public.pg_file_unlink(text)"
>> pg_dump: creating FUNCTION "public.pg_file_write(text, text, boolean)"
>> pg_dump: [archiver] could not write to output file: Invalid argument
>>
>> Please advise.
>>
>
> I'd guess you are running into something like
>
> http://stackoverflow.com/questions/15672651/failure-using-heroku-pgtransfer
>
> i.e old functions that cannot be recreated in 9,5, maybe check the logs
> on the 9.5 server for the reason you are seeing 'invalid argument'.
>
> You may need to drop those pg_file_* and pg_database_size functions
> (they are not native to 8.0...I checked...had to compile a 8.0.26, which
> was interesting).
>
I tested that idea out (adding in the dbsize contrib for 8.0 and doing
dump/restore to 9.5) and while I see errors for *those* functions,
everything else (i.e tables etc) are loaded into 9.5 ok.
So something else is tripping you up - have a look at the postgres logs
for the 8.0 and 9.5 systems.
Cheers
Mark
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: mark.kirkwood@catalyst.net.nz, Premsun@nsasia.co.th, pierce@hogranch.com
Subject: Re: could not migrate 8.0.13 database with large object data to 9.5.1
In-Reply-To: <56D8A852.40308@catalyst.net.nz>
References: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th> <56D67870.1040100@catalyst.net.nz> <56D8A852.40308@catalyst.net.nz>
* 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