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 f499iTA31868 for ; Wed, 9 May 2001 05:44:29 -0400 (EDT) (envelope-from dassing@wettzell.ifag.de) Received: by gate-w.wettzell.ifag.de (8.9.3/8.9.3) id LAA07577; Wed, 9 May 2001 11:44:15 +0200 (CEST) Received: (from localhost) by gate-w.wettzell.ifag.de (MSCAN) id 2/gate-w.wettzell.ifag.de/smtp-gw/mscan; Wed May 9 11:44:15 2001 Message-ID: <3AF9112E.8D5C4833@wettzell.ifag.de> Date: Wed, 09 May 2001 11:43:10 +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> <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> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Archive-Number: 200105/37 X-Sequence-Number: 1377 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