pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Reiner Dassing <dassing@wettzell.ifag.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Restoring a pg_dump fails with
Date: Fri, 27 Apr 2001 09:56:30 +0200
Message-ID: <3AE9262E.6191263F@wettzell.ifag.de> (raw)
References: <3AE84026.F994B9E2@wettzell.ifag.de>
	<16641.988302196@sss.pgh.pa.us>

Tom Lane wrote:
> 
> Reiner Dassing <dassing@wettzell.ifag.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@wettzell.ifag.de
|                   URL: http://www.ifag.de
---------------------------------------------------



view thread (12+ messages)  latest in thread

Message-ID: <3AE9262E.6191263F@wettzell.ifag.de>
Permalink:  ../3AE9262E.6191263F@wettzell.ifag.de/
Also on:    postgresql.org/message-id/3AE9262E.6191263F@wettzell.ifag.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dassing@wettzell.ifag.de, tgl@sss.pgh.pa.us
  Subject: Re: Restoring a pg_dump fails with
  In-Reply-To: <3AE9262E.6191263F@wettzell.ifag.de>
  References: <3AE84026.F994B9E2@wettzell.ifag.de> <16641.988302196@sss.pgh.pa.us> <3AE9262E.6191263F@wettzell.ifag.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox