Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aayst-0003YE-OT for pgsql-general@arkaria.postgresql.org; Wed, 02 Mar 2016 04:59:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aayst-0003kM-B5 for pgsql-general@arkaria.postgresql.org; Wed, 02 Mar 2016 04:59:39 +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 1aayss-0003kF-NT for pgsql-general@postgresql.org; Wed, 02 Mar 2016 04:59:38 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aaysq-0005gH-Cx for pgsql-general@postgresql.org; Wed, 02 Mar 2016 04:59:37 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u224xU713659 for ; Tue, 1 Mar 2016 20:59:30 -0800 Subject: Re: could not migrate 8.0.13 database with large object data to 9.5.1 To: "pgsql-general@postgresql.org" References: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th> From: John R Pierce Message-ID: <56D6732F.1010503@hogranch.com> Date: Tue, 1 Mar 2016 20:59:27 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56D6C8E80200004C0001F9E3@heineken.nsasia.co.th> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org (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