pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Rotek <pavel.rotek@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Toast space grows
Date: Fri, 07 Mar 2008 09:31:23 -0500
Message-ID: <13188.1204900283@sss.pgh.pa.us> (raw)
In-Reply-To: <3556c08c0803070611p542eb317vfaf9b783172b6c3@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>

"Pavel Rotek" <pavel.rotek@gmail.com> writes:
> 2008/3/7, Tom Lane <tgl@sss.pgh.pa.us>:
>> You mean that you build up the 5MB log entry by adding a few lines at a
>> time?  That's going to consume horrid amounts of toast space, because
>> each time you add a few lines, an entire new toasted field value is
>> created.

> well, this will be the main problem... But... do uncomitted trasactions
> affect toast space?

Sure.  Where do you think the data goes?  It's gotta be stored
someplace.  Every UPDATE operation that changes a toasted field will
consume space for a fresh copy of that field, whether it ever commits or
not.  You need VACUUM to reclaim the space eaten by no-longer-accessible
copies.

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <13188.1204900283@sss.pgh.pa.us>
Permalink:  ../13188.1204900283@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13188.1204900283@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pavel.rotek@gmail.com
  Subject: Re: Toast space grows
  In-Reply-To: <13188.1204900283@sss.pgh.pa.us>

* 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