Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aawTF-0005eU-95 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Mar 2016 02:25:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aawTE-00061l-Rp for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Mar 2016 02:25:00 +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 1aawSc-0005KP-D0 for pgsql-bugs@postgresql.org; Wed, 02 Mar 2016 02:24:22 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aawSZ-0002Uu-Sj for pgsql-bugs@postgresql.org; Wed, 02 Mar 2016 02:24:21 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u222OD711553 for ; Tue, 1 Mar 2016 18:24:13 -0800 Subject: Re: Re: could not migrate 8.0.13 database with large object data to 9.5.1 To: pgsql-bugs@postgresql.org References: <56D6AC8A0200004C0001F9C9@heineken.nsasia.co.th> From: John R Pierce Message-ID: <56D64ECA.7020400@hogranch.com> Date: Tue, 1 Mar 2016 18:24:10 -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: <56D6AC8A0200004C0001F9C9@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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 3/1/2016 6:04 PM, Premsun Choltanwanich wrote: > Following your instruction by only modify some parameters to match > with my system, below is a command I just running under "C:\Program > Files\PostgreSQL\9.5\bin" on my PostgreSQL 9.5.1 after trying > that "psql -h 192.168.200.75 clubprogram clubadmin" is worked fine. > > My Command: > pg_dump -Ft -v -b -h 192.168.200.75 -U clubadmin -d clubprogram | > pg_restore -U clubadmin -d clubprogram > > Almost Last Result Message: > pg_dump: reading rewrite rules > pg_dump: reading policies > pg_dump: reading large objects > pg_dump: reading dependency data > pg_dump: saving encoding = UTF8 > pg_dump: saving standard_conforming_strings = off > pg_dump: saving database definition > pg_restore: [tar archiver] corrupt tar header found in TION (expected > 0, computed 37579) file position 512 > pg_dump: [tar archiver] could not write to output file: Broken pipe > > LOG Message: > No log is created after running above command. > > > Do you have any other suggestion? Or, May I need to modify some > parameters on my command? > > > > > NOTE: My PostgreSQL 9.5.1 is running on Windows 8 (64bit) and > PostgreSQL 8.0.13 is running on Windows XP (32bit). try the dump without the -Ft flag (tar format) and piped into psql... like... c: cd \Program Files\PostgreSQL\9.5\bin pg_dump -h 192.168.200.75 -U clubadmin -d clubprogram | psql -U clubadmin -d clubprogram (after first dropping and recreating the new database) -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs