dbTalk Databases Forums  

Re: [Fwd: Re: [BUGS] BUG #2168: 45.000.000 records too much?]

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [Fwd: Re: [BUGS] BUG #2168: 45.000.000 records too much?] in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: [Fwd: Re: [BUGS] BUG #2168: 45.000.000 records too much?] - 01-18-2006 , 10:19 AM






Steven Mooij <steven (AT) mooij (DOT) name> writes:
Quote:
LOG: background writer process (PID 8208) was terminated by signal 9
LOG: terminating any other active server processes
LOG: statistics collector process (PID 8209) was terminated by signal 9
Kill -9 is not something Postgres ever initiates; where it is probably
coming from is the Linux kernel's emergency out-of-memory handling code.
You really ought to disable OOM kills because they are utterly unsafe :-(
In the above example the kernel has chosen to kill innocent bystander
processes instead of the process that was actually sucking the memory.
See "Linux Memory Overcommit" at
http://www.postgresql.org/docs/8.1/s....html#AEN18105

As for where the memory is being sucked, it's the list of pending
foreign-key checks during your insert into t_test2. If you can't
increase the amount of memory available, you'll need to break the
insertion into smaller chunks. Or perhaps not add the foreign key
constraint till after the table is built. (Eventually we need to
improve PG so that it can cope with enormous pending-foreign-key lists,
but that's not been done yet.)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.