Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxcGO-00088B-F1 for pgsql-admin@arkaria.postgresql.org; Wed, 27 May 2015 14:24:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxcGN-0005LI-VB for pgsql-admin@arkaria.postgresql.org; Wed, 27 May 2015 14:24:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxcGM-0005LB-UM for pgsql-admin@postgresql.org; Wed, 27 May 2015 14:24:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YxcGF-00019q-I5 for pgsql-admin@postgresql.org; Wed, 27 May 2015 14:24:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t4REOiR6031651; Wed, 27 May 2015 10:24:44 -0400 From: Tom Lane To: girish R G peetle cc: pgsql-admin Subject: Re: PostgreSQL Dump based backup using pipe In-reply-to: References: Comments: In-reply-to girish R G peetle message dated "Wed, 27 May 2015 16:49:37 +0530" Date: Wed, 27 May 2015 10:24:44 -0400 Message-ID: <31650.1432736684@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org girish R G peetle writes: > We were using named pipe to read dump data from 'pg_dump -Fc' (compressed > format) on Windows. > Restore was failing with 'corrupt dump data' error. > Later found that pg_dump was performing 'illegal seek' on pipe to write the > data, which was causing corrupt dump. That should work. What PG version are you using exactly, and can we see a full example of what you were trying to do? There are unsupported cases --- I recall in particular that you can't do a parallel restore from a pipe --- but you should not be getting "corrupt file" errors. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin