pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Dave Crooke <dcrooke@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: vacuum'ing toast crumbs, detecting dangling transactions
Date: Wed, 04 Nov 2009 15:30:25 -0600
Message-ID: <4AF19E11020000250002C2B0@gw.wicourts.gov> (raw)
In-Reply-To: <ca24673e0911041318p1c05c009l95c13b74dcb93b3@mail.gmail.com>
References: <ca24673e0911041318p1c05c009l95c13b74dcb93b3@mail.gmail.com>

Dave Crooke <dcrooke@gmail.com> wrote:
 
> I'm not defending the decision to store blobs in a database (it was
> taken a while ago, before the need for frequent updates of the XML)
> and it isn't something that can be readily changed at short notice,
> so please no advice about "don't do that" :-)
 
I wouldn't sweat 50kB chunks of XML.  We store 10MB PDF files.  :-)
 
> is showing 40-50% dead tuples. However, if I disconnect the app, all
> the dead tuples clean up and moved to the "free space" category.
 
As you suspected, that sounds like lingering database transactions. 
Try looking at the pg_stat_activity table for transactions "IDLE in
transaction".  If you're having trouble pinning down the cause, look
the pg_locks view to see what tables they've been in.
 
-Kevin



view thread (3+ messages)  latest in thread

Message-ID: <4AF19E11020000250002C2B0@gw.wicourts.gov>
Permalink:  ../4AF19E11020000250002C2B0@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4AF19E11020000250002C2B0@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, dcrooke@gmail.com
  Subject: Re: vacuum'ing toast crumbs, detecting dangling transactions
  In-Reply-To: <4AF19E11020000250002C2B0@gw.wicourts.gov>
  References: <ca24673e0911041318p1c05c009l95c13b74dcb93b3@mail.gmail.com> <4AF19E11020000250002C2B0@gw.wicourts.gov>

* 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