Re: pg_restore out of memory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Francisco Reyes <lists(at)stringsutils(dot)com>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_restore out of memory
Date: 2007-06-15 17:56:05
Message-ID: 6660.1181930165@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Reyes <lists(at)stringsutils(dot)com> writes:
> Tom Lane writes:
>> Can we see the context-sizes dump that should've come out right before
>> that in the log?

> Hope this is what you are looking for.
> Included a few lines before the error in case that is of any help.

Well, that's the last few lines of what I wanted, but not the part that
was interesting :-(. Please show all the lines that are like the "n
total in m blocks" format. Or at least look for the one(s) that contain
large numbers...

> The table has no insert triggers, but does have a Foreign-key constraint.
> "message_attachments_message_id_fkey" FOREIGN KEY (message_id) REFERENCES
> messages(message_id)

Hmm, you may well be blowing out the deferred-foreign-key-check list.
But pg_dump normally orders its operations so that the data is loaded
before trying to set up FK constraints. Are you perhaps trying to do a
data-only restore?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message PFC 2007-06-15 18:03:08 Re: Postmaster processes taking all the CPU
Previous Message Francisco Reyes 2007-06-15 17:42:01 Re: vacuum and postgresql.conf settings