Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 8CF5F2E0037 for ; Wed, 16 Apr 2008 06:58:39 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15413-04 for ; Wed, 16 Apr 2008 06:58:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by developer.postgresql.org (Postfix) with ESMTP id 84BCE2E0030 for ; Wed, 16 Apr 2008 06:58:33 -0300 (ADT) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m3G9wV8M076489 for ; Wed, 16 Apr 2008 12:58:31 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m3G9wVeK076488 for pgsql-admin@postgresql.org; Wed, 16 Apr 2008 12:58:31 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-admin@postgresql.org Subject: Re: Examining very large dumps Date: Wed, 16 Apr 2008 12:58:29 +0300 User-Agent: KMail/1.9.7 References: <200804161235.27157.achill@matrix.gatewaynet.com> <20080416095245.GC31097@easy2.in-chemnitz.de> In-Reply-To: <20080416095245.GC31097@easy2.in-chemnitz.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200804161258.30731.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/157 X-Sequence-Number: 28921 =D3=F4=E9=F2 Wednesday 16 April 2008 12:52:45 =EF/=E7 Tino Schwarze =DD=E3= =F1=E1=F8=E5: > On Wed, Apr 16, 2008 at 12:35:26PM +0300, Achilleas Mantzios wrote: > > Hi, i just started the process of migrating from 7.4 to 8.3.1. > > On restoring, apart from the easily explainable ERRORs (both in DDL, CO= PY), i got some ugly ERRORs > > denoting foreign key constraint violations. > > Since the dump is 35 Gbytes, i'd like your advice for examining, editin= g, extracting portions of large dumps, > > in order to find the cause of the problem. vim (linux), vi (FreeBSD) or= any other unix editor i tried, could not handle the > > volume. >=20 > Do you have a plain text dump or a compressed archive? Try using less > for a first view, then extract things with grep or alter with sed. Its a text dump. however less, tail, head seem dead slow, i'll try with som= e form of grep. I'd like to know if there is some kind of more efficient editor for viewing= , searching very large text files, searching by lineno or content. >=20 > HTH, >=20 > Tino. >=20 > --=20 > =E2=80=9EWhat we resist, persists.=E2=80=9D (Zen saying) >=20 > www.craniosacralzentrum.de > www.forteego.de >=20 =2D-=20 Achilleas Mantzios