pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Rotek <pavel.rotek@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Toast space grows
Date: Fri, 7 Mar 2008 15:27:47 +0100
Message-ID: <3556c08c0803070627w5a842140n9a0c9b574909849e@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0803071417290.20402@aragorn.flymine.org>
References: <3556c08c0803070035p6d8b4aa8m6318f54728f61022@mail.gmail.com>
	<47D10722.4080508@archonet.com>
	<3556c08c0803070129y6ffabf32i1c8bae445ec460e0@mail.gmail.com>
	<20080307065314.1248665b.wmoran@collaborativefusion.com>
	<3556c08c0803070459i8598423t64e0704e48af533@mail.gmail.com>
	<11848.1204896799@sss.pgh.pa.us>
	<3556c08c0803070611p542eb317vfaf9b783172b6c3@mail.gmail.com>
	<Pine.LNX.4.64.0803071417290.20402@aragorn.flymine.org>

2008/3/7, Matthew <matthew@flymine.org>:
>
> 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


Because I modify existing application, where logic is already given :-(. If
no other way exists, i'll have to do refactoring...

--
> "To err is human; to really louse things up requires root
>   privileges."                 -- Alexander Pope, slightly paraphrased
>

view thread (15+ messages)  latest in thread

Message-ID: <3556c08c0803070627w5a842140n9a0c9b574909849e@mail.gmail.com>
Permalink:  ../3556c08c0803070627w5a842140n9a0c9b574909849e@mail.gmail.com/
Also on:    postgresql.org/message-id/3556c08c0803070627w5a842140n9a0c9b574909849e@mail.gmail.com

 · 

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-performance@postgresql.org
  Cc: pavel.rotek@gmail.com
  Subject: Re: Toast space grows
  In-Reply-To: <3556c08c0803070627w5a842140n9a0c9b574909849e@mail.gmail.com>
  References: <3556c08c0803070035p6d8b4aa8m6318f54728f61022@mail.gmail.com> <47D10722.4080508@archonet.com> <3556c08c0803070129y6ffabf32i1c8bae445ec460e0@mail.gmail.com> <20080307065314.1248665b.wmoran@collaborativefusion.com> <3556c08c0803070459i8598423t64e0704e48af533@mail.gmail.com> <11848.1204896799@sss.pgh.pa.us> <3556c08c0803070611p542eb317vfaf9b783172b6c3@mail.gmail.com> <Pine.LNX.4.64.0803071417290.20402@aragorn.flymine.org> <3556c08c0803070627w5a842140n9a0c9b574909849e@mail.gmail.com>

* 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