Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1abaWq-0006bw-Ax for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Mar 2016 21:11:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1abaWp-0005xC-EI for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Mar 2016 21:11:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1abaWo-0005wf-Ce for pgsql-bugs@postgresql.org; Thu, 03 Mar 2016 21:11:22 +0000 Received: from bertrand.catalyst.net.nz ([202.78.240.40] helo=mail.catalyst.net.nz) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1abaWj-0004kz-F2 for pgsql-bugs@postgresql.org; Thu, 03 Mar 2016 21:11:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 1BB9632086; Fri, 4 Mar 2016 10:11:04 +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 is4qiHVuj3b4; Fri, 4 Mar 2016 10:11:02 +1300 (NZDT) Received: from [IPv6:2404:130:0:1000:1c0b:90ee:87ff:a6a1] (unknown [IPv6:2404:130:0:1000:1c0b:90ee:87ff:a6a1]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id B8E9933986; Fri, 4 Mar 2016 10:10:42 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catalyst.net.nz; s=catalyst; t=1457039442; bh=/y9cVT9mn9AiC0ESPF/ICOJ5NpX0fFTp1a+x6D9ObNs=; h=Subject:To:References:From:Date:In-Reply-To; b=PPRy9qd1sfLUWbZLY069L5EK7lFDU4H7vkDVyM+UoWmdDhQsJz7uykYx65dIWqVhJ AZJOymUJrtohptHyioCtkGa+suvHH+Ysv5KBqyfqCESVB0vZP6JbEBBtIemcqOCSe2 WeKLX+zqI/H4hQVay5Q9xZ98cxCbzwE1uUVKD7mY= 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> <56D67870.1040100@catalyst.net.nz> From: Mark Kirkwood Message-ID: <56D8A852.40308@catalyst.net.nz> Date: Fri, 4 Mar 2016 10:10:42 +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: <56D67870.1040100@catalyst.net.nz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.3 (----) 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 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