Re: Restoring a pg_dump fails with

From: Reiner Dassing <dassing(at)wettzell(dot)ifag(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Restoring a pg_dump fails with
Date: 2001-04-27 07:56:30
Message-ID: 3AE9262E.6191263F@wettzell.ifag.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom Lane wrote:
>
> Reiner Dassing <dassing(at)wettzell(dot)ifag(dot)de> writes:
> > By upgrading von PostgreSQL 6.5.3 to 7.1.0 I restored a dump file by
> > psql dbname <dbname.dump
>
> > 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(at)wettzell(dot)ifag(dot)de
| URL: http://www.ifag.de
---------------------------------------------------

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2001-04-27 12:41:02 Re: Restoring a pg_dump fails with
Previous Message Rick Robino 2001-04-27 03:51:55 Re: Can't start Pgsql 7.1 on FreeBSD 4.2