Received: from gate-w.wettzell.ifag.de (gate-w.ifag.de [141.74.1.1]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3R7ur368049 for ; Fri, 27 Apr 2001 03:56:57 -0400 (EDT) (envelope-from dassing@wettzell.ifag.de) Received: by gate-w.wettzell.ifag.de (8.9.3/8.9.3) id JAA03340; Fri, 27 Apr 2001 09:56:48 +0200 (CEST) Received: (from localhost) by gate-w.wettzell.ifag.de (MSCAN) id 2/gate-w.wettzell.ifag.de/smtp-gw/mscan; Fri Apr 27 09:56:48 2001 Message-ID: <3AE9262E.6191263F@wettzell.ifag.de> Date: Fri, 27 Apr 2001 09:56:30 +0200 From: Reiner Dassing Organization: BKG-Wettzell X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: de,en MIME-Version: 1.0 To: Tom Lane CC: pgsql-admin@postgresql.org Subject: Re: Restoring a pg_dump fails with References: <3AE84026.F994B9E2@wettzell.ifag.de> <16641.988302196@sss.pgh.pa.us> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Archive-Number: 200104/161 X-Sequence-Number: 1301 Tom Lane wrote: > > Reiner Dassing writes: > > By upgrading von PostgreSQL 6.5.3 to 7.1.0 I restored a dump file by > > psql dbname > > After some time I get the following message: > > ERROR: copy: line 1638280, Memory exhausted in AllocSetAlloc(56) > > PQendcopy: resetting connection > > That shouldn't happen. Could we see the dump file? (Just the schema > commands, not the data itself...) > > regards, tom lane Dear Tom! Thank you for your help. Certainly I will give this short schema: \connect - postgres ... CREATE TABLE "wetter" ( "sensor_id" int4 NOT NULL, "epoche" datetime NOT NULL, "wert" float4 NOT NULL); REVOKE ALL on "wetter" from PUBLIC; GRANT ALL on "wetter" to "postgres"; COPY "wetter" FROM stdin; 8 Thu Mar 02 02:34:02 2000 GMT -0.4 10 Thu Mar 02 02:34:02 2000 GMT 95 3 Thu Mar 02 02:34:02 2000 GMT 193.6 11 Thu Mar 02 02:34:02 2000 GMT 97.7 2 Thu Mar 02 02:34:02 2000 GMT 251.5 13 Thu Mar 02 02:34:02 2000 GMT 940.9 1 Thu Mar 02 02:34:02 2000 GMT 283.2 6 Thu Mar 02 02:34:02 2000 GMT 0.8 .... \. I have witten a script to convert these COPY statements to INSERTs and this worked! But it took a long time during night time. -- Mit freundlichen Gruessen / With best regards Reiner Dassing --------------------------------------------------- | Bundesamt fuer Kartographie und Geodaesie | Fundamentalstation Wettzell | Sackenrieder Str. 25 | D-93444 Koetzting | | Tel: (+49) (0)9941/603-112 | Fax: (+49) (0)9941/603-222 | Zentrale: (+49) (0)9941/603-0 | E-mail: dassing@wettzell.ifag.de | URL: http://www.ifag.de ---------------------------------------------------