Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A68BC632291 for ; Wed, 14 Jan 2009 08:04:24 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 89080-07 for ; Wed, 14 Jan 2009 08:04:21 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.225]) by mail.postgresql.org (Postfix) with ESMTP id AF1F4632288 for ; Wed, 14 Jan 2009 08:04:21 -0400 (AST) Received: by qb-out-0506.google.com with SMTP id d8so205617qbc.23 for ; Wed, 14 Jan 2009 04:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FQkSr1HX78IsaubaOETNcK2I9QunhkG4QiptI73cKZc=; b=Lpp3CwPX8uu5jCYyEmBwxz26KxM/yQ3YT1d77wUNmdi0knkqXGQzffoFogm8fDrkbp ppa80g8mL2wN/+esoZSNt822z1rC88TOjb0vpyjUlppuLIjKPgmj1kTKRYK+bJpLT1Nw KFzK1zAuLN+wxmDpfNDZiMOeHHtai+KMSiV9c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jwEhuPAdj3MUpn/rRYCPNJ7kSht+kCsmYNYRRzQkUb/qwz+I2mEl72Nl2Ud6xQYT+n 3RHsjDfhqkyWHJgbygttNerAf3gHKIbONvl5vtnZo4VbVJNhePKk1hRCNBlJO8k2S0H0 MHCgx09S9FsdejsdhOLY+glWiGSeTNCgu0NkQ= MIME-Version: 1.0 Received: by 10.142.88.4 with SMTP id l4mr4491wfb.117.1231934660071; Wed, 14 Jan 2009 04:04:20 -0800 (PST) In-Reply-To: <4FB0C599D8D0B14FA37B46EAD92F2153063CC15A@CORPUSMX60C.corp.emc.com> References: <4FB0C599D8D0B14FA37B46EAD92F2153063CC15A@CORPUSMX60C.corp.emc.com> Date: Wed, 14 Jan 2009 10:04:20 -0200 Message-ID: Subject: Re: [ADMIN] Problem with pg_dump From: Emanuel Calvo Franco To: General PostgreSQL List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/353 X-Sequence-Number: 142438 2009/1/13 : > Hi All, > > > > I am a developer of a product that uses a postgresql database (currently > version 8.2.3.1). We dump the database using pg_dumpall. We are finding > data corruption in the dump files about twice a month with a few thousand > installations. I have been able to track down the data corruption to the > original dump file created by pg_dumpall. In every case I've seen of the > corruption 1 or 2 characters are missing. The problem exhibits itself when > loading the dump files. Here is an example where two lines were combined: > > you try to use pg_dump instead (only the DB you want)? what fs you are using? (i think is ntfs) Integrity check? Force the enconding of dump to the same as OS. I don't know about a bug in these version, specially in terms of data. > > ERROR: extra data after last expected column > > CONTEXT: COPY ds_targets, line 42: "1180635517879 3001 > C:/SQLBackup/1180635517879 3001 C:/System Volume Information/" > > > > The file bad row was: > > > > 1180635517879 3001 C:/SQLBackup/1180635517879 3001 C:/System > Volume Information/ > > > > It should have been two rows as follows: > > > > 1180635517879 3001 C:/SQLBackup/ > > 1180635517879 3001 C:/System Volume Information/ > > > > Is this something that is perhaps fixed in postgresql 8.3? Any assistance > in resolving this problem would be appreciated. > > > > Thanks, > > Ed > > > > -- Emanuel Calvo Franco ArPUG / AOSUG Member Postgresql Support & Admin