pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Franck Routier <franck.routier@axege.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: pg_restore : out of memory
Date: Fri, 19 Dec 2008 10:50:43 +0900
Message-ID: <494AFDF3.8020903@postnewspapers.com.au> (raw)
In-Reply-To: <1228399715.16894.22.camel@franck-laptop>
References: <1228399715.16894.22.camel@franck-laptop>

Franck Routier wrote:
> Hi,
> 
> I am trying to restore a table out of a dump, and I get an 'out of
> memory' error.

- Operating system?
- PostgreSQL version?
- PostgreSQL configuration - work_mem, shared_buffers, etc?

> So, here is my question : is pg_restore supposed to eat all memory ?

No, but PostgreSQL's backends will if you tell them there's more memory
available than there really is.

> and
> is there something I can do to prevent that ?

Adjust your PostgreSQL configuration to ensure that shared_buffers,
work_mem, etc are appropriate for the system and don't tell Pg to use
more memory than is actually available.

pg_restore isn't using up your memory. The PostgreSQL backend is.

--
Craig Ringer



view thread (3+ messages)  latest in thread

Message-ID: <494AFDF3.8020903@postnewspapers.com.au>
Permalink:  ../494AFDF3.8020903@postnewspapers.com.au/
Also on:    postgresql.org/message-id/494AFDF3.8020903@postnewspapers.com.au

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: craig@postnewspapers.com.au, franck.routier@axege.com
  Subject: Re: pg_restore : out of memory
  In-Reply-To: <494AFDF3.8020903@postnewspapers.com.au>

* 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