From: | <zeeshan(dot)ghalib(at)wozzon(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Out of memory on update of a single column table containg just one row. |
Date: | 2010-07-05 10:11:54 |
Message-ID: | EB32C6744F73834AA2A3E17182E4292D06A1F6@MS10.lsc.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello Guys,
We are trying to migrate from Oracle to Postgres. One of the major requirement of our database is the ability to generate XML feeds and some of our XML files are in the order of 500MB+.
We are getting "Out of Memory" errors when doing an update on a table.
Here is some detail on the error:
------------------------------------
update test_text3 set test=test||test
The table test_text3 contains only one record, the column test contains a string containing 382,637,520 characters (around 300+ MB)
Error Message:
ERROR: out of memory
DETAIL: Failed on request of size 765275088.
The server has 3GB of RAM:
total used free shared buffers cached
Mem: 3115804 823524 2292280 0 102488 664224
-/+ buffers/cache: 56812 3058992
Swap: 5177336 33812 5143524
I tweaked the memory parameters of the server a bit to the following values, but still no luck.
shared_buffers = 768MB
effective_cache_size = 2048MB
checkpoint_segments 8
checkpoint_completion_target 0.8
work_mem 10MB
max_connections 50
wal_buffers 128
This error is consistent and reproducible every time I run that update. I can provide a detailed stack trace if needed.
Any help would be highly appreciated.
For those who are interested in the background, we are trying to migrate from Oracle to Postgresql. One of the major requirement of our database is the ability to generate XML feeds and some of our XML files are in the order of 500MB+.
Considering future scalability we are trying to see how much data can be stored in a "text" column and written to the file system as we found PostgreSQL's COPY command an extremely efficient way of writing date to a file.
Thanks in advance and best regards,
Zeeshan
This e-mail is confidential and should not be used by anyone who is not the original intended recipient. woZZon Limited does not accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of woZZon Limited. No contracts may be concluded on behalf of woZZon Limited by means of e-mail communication. woZZon Limited Registered in England and Wales with registered number 03926130 Registered Office Middlesex House, 34-42 Cleveland Street, London W1T 4LB
From | Date | Subject | |
---|---|---|---|
Next Message | Zeeshan.Ghalib | 2010-07-05 10:47:31 | Out of memory on update of a single column table containg just one row. |
Previous Message | Saitenheini | 2010-07-05 08:20:30 | Re: C-Functions using SPI - Missing Magic Block |