pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rachael <rulonrasp@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6256: loading small file eats all memory and crashes system
Date: Sat, 15 Oct 2011 03:43:34 GMT
Message-ID: <201110150343.p9F3hYfO061677@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6256
Logged by:          Rachael
Email address:      rulonrasp@gmail.com
PostgreSQL version: 9.11
Operating system:   Arch  Linux
Description:        loading small file eats all memory and crashes system
Details: 

While attempting to import a sql file, postgres eats all my physical memory
(4GB) and swap file space(2GB).  

The file itself is a series of insert statements that is 10,000 rows by 100
columns wide.  A smaller file (1000 rows) loads just fine.  I'll be glad to
provide sample files.  The command I'm using is inside a perl script:

print `psql $database $user < postgres.sql`;

When the computer runs out of memory the process finally dies.  The file
itself is about 32MB in size.

Even if this import needs a performance tweak in the conf file, this
shouldn't exhaust all of the memory in the system before exiting.

Log Output:

LOG:  unexpected EOF on client connection
LOG:  server process (PID 5280) was terminated by signal 9: Killed
LOG:  terminating any other active server processes
WARNING:  terminating connection because of crash of another server process
DETAIL:  The postmaster has commanded this server process to roll back the
current transaction and exit, because another server process exited
abnormally and possibly corrupted shared memory.
HINT:  In a moment you should be able to reconnect to the database and
repeat your command.
WARNING:  terminating connection because of crash of another server process



view thread (5+ messages)  latest in thread

Message-ID: <201110150343.p9F3hYfO061677@wwwmaster.postgresql.org>
Permalink:  ../201110150343.p9F3hYfO061677@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201110150343.p9F3hYfO061677@wwwmaster.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: rulonrasp@gmail.com
  Subject: Re: BUG #6256: loading small file eats all memory and crashes system
  In-Reply-To: <201110150343.p9F3hYfO061677@wwwmaster.postgresql.org>
  References: <201110150343.p9F3hYfO061677@wwwmaster.postgresql.org>

* 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