Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aazEf-0004Oa-82 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Mar 2016 05:22:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aazEe-0007Za-R8 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Mar 2016 05:22:08 +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) (envelope-from ) id 1aazEe-0007ZT-Ab for pgsql-bugs@postgresql.org; Wed, 02 Mar 2016 05:22:08 +0000 Received: from mail.catalyst.net.nz ([2404:130:0:10::40:0]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aazEX-0006CU-47 for pgsql-bugs@postgresql.org; Wed, 02 Mar 2016 05:22:07 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 022E2336D7; Wed, 2 Mar 2016 18:21:56 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QupXjEQMf8i3; Wed, 2 Mar 2016 18:21:53 +1300 (NZDT) Received: from [192.168.1.64] (222-153-77-84.jetstream.xtra.co.nz [222.153.77.84]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id 646B5336E9; Wed, 2 Mar 2016 18:21:53 +1300 (NZDT) Subject: Re: Re: could not migrate 8.0.13 database with large object data to 9.5.1 To: Premsun Choltanwanich , pierce@hogranch.com, pgsql-bugs@postgresql.org References: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th> From: Mark Kirkwood Message-ID: <56D67870.1040100@catalyst.net.nz> Date: Wed, 2 Mar 2016 18:21:52 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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). regards Mark -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs