| From: | Matthew <matthew(at)flymine(dot)org> | 
|---|---|
| To: | Pavel Rotek <pavel(dot)rotek(at)gmail(dot)com> | 
| Cc: | pgsql-performance(at)postgresql(dot)org | 
| Subject: | Re: Toast space grows | 
| Date: | 2008-03-07 14:19:47 | 
| Message-ID: | Pine.LNX.4.64.0803071417290.20402@aragorn.flymine.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-performance | 
On Fri, 7 Mar 2008, Pavel Rotek wrote:
> well, this will be the main problem... But... do uncomitted trasactions
> affect toast space?
I think the demonstrated answer to this is yes.
> (begin tx, load previous log, do business action, append new log, flush, do
> business action, append new log, flush, ... do business action, append new
> log, flush, commit tx).
If all you're doing is appending to the end of the log, why don't you make 
each "append" a new row in a table. Instead of building massive rows, use 
the database for what it was designed for, and have many smaller 
independent rows.
Matthew
-- 
"To err is human; to really louse things up requires root
 privileges."                 -- Alexander Pope, slightly paraphrased
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Rotek | 2008-03-07 14:22:17 | Re: Toast space grows | 
| Previous Message | Pavel Rotek | 2008-03-07 14:11:55 | Re: Toast space grows |