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: Wed, 09 May 2001 11:43:10 +0200
Message-ID: <3AF9112E.8D5C4833@wettzell.ifag.de> (raw)
References: <3AE84026.F994B9E2@wettzell.ifag.de>
<16641.988302196@sss.pgh.pa.us>
<3AE9262E.6191263F@wettzell.ifag.de>
<4403.988375262@sss.pgh.pa.us>
<3AED0AC3.2198D6F9@wettzell.ifag.de>
<14603.988639166@sss.pgh.pa.us>
<3AF018A5.2F424492@wettzell.ifag.de>
<11497.988815239@sss.pgh.pa.us>
Hello Tom!
Sorry for coming up again with the same problem:
COPY FROM fails with "Memory exhausted in AllocSetAlloc(40)"
After inserting all the data fields by INSERTs I activated the
following
script by 'psql -e wetter < wetter.sql':
wetter.sql contains the following:
COPY wetter to '/Postgres/backup/h.h';
ALTER TABLE wetter RENAME TO o_wetter;
DROP INDEX wetter_pkey;
DROP INDEX idx_wetter_epoche;
DROP INDEX wetter_wetter_sensor_id_idx;
--
CREATE TABLE "wetter" (
"sensor_id" int4 NOT NULL REFERENCES sensoren_an_orten,
"epoche" datetime NOT NULL,
"wert" float4 NOT NULL,
PRIMARY KEY (sensor_id,epoche));
REVOKE ALL on "wetter" from PUBLIC;
GRANT ALL on "wetter" to "postgres";
CREATE INDEX wetter_epoche_idx ON wetter(epoche);
CREATE INDEX wetter_sensor_id_idx ON wetter(sensor_id);
--
--
COPY wetter FROM '/Postgres/backup/h.h';
SELECT count(*) FROM o_wetter;
SELECT count(*) FROM wetter;
Now:
The statement "COPY wetter FROM '/Postgres/backup/h.h';"
ends with
"ERROR: copy: line 1638280, Memory exhausted in AllocSetAlloc(40)"
PostgresLog says:
May 9 09:21:45 sweaty postgres[584514]: [10] DEBUG: copy: line
1315779, XLogWrite: new log file created - consider increasing WAL_FILES
May 9 09:23:27 sweaty postgres[584514]: [11] ERROR: copy: line
1638280, Memory exhausted in AllocSetAlloc(40)
May 9 09:23:27 sweaty postgres[584514]: [11] ERROR: copy: line
1638280, Memory exhausted in AllocSetAlloc(40)
May 9 09:23:27 sweaty postgres[584514]: [12] DEBUG:
AbortCurrentTransaction
This done under Postgres Version 7.1.1
There is no further Trigger, Rule or something.
I hope this helps!
--
Mit freundlichen Gruessen / With best regards
Reiner Dassing
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: <3AF9112E.8D5C4833@wettzell.ifag.de>
References: <3AE84026.F994B9E2@wettzell.ifag.de> <16641.988302196@sss.pgh.pa.us> <3AE9262E.6191263F@wettzell.ifag.de> <4403.988375262@sss.pgh.pa.us> <3AED0AC3.2198D6F9@wettzell.ifag.de> <14603.988639166@sss.pgh.pa.us> <3AF018A5.2F424492@wettzell.ifag.de> <11497.988815239@sss.pgh.pa.us> <3AF9112E.8D5C4833@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