pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tamás András Kálmán <hello@tamaskalman.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Modified rows are not marked as dead and as such vacuum is unable to clean them up
Date: Thu, 06 Jul 2017 17:25:25 -0400
Message-ID: <30918.1499376325@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAV1k2e7FLkpjHthkqeA3u13Nv8pV57uVkkmb6P8rh0x=z3Dcw@mail.gmail.com>
References: <CAAV1k2e7FLkpjHthkqeA3u13Nv8pV57uVkkmb6P8rh0x=z3Dcw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

=?UTF-8?B?VGFtw6FzIEFuZHLDoXMgS8OhbG3DoW4=?= <hello@tamaskalman.com> writes:
> we have a PostgreSQL 9.3.4 database with multiple large tables, that keep
> growing.
> Looking at the pg_stat of  the front runner table that is currently about 1
> Gb  big, it seems, that stale row data is not marked as dead after updates,

Have you checked for uncommitted prepared transactions?
If "select * from pg_prepared_xacts" finds anything, that's
probably your problem.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (3+ messages)  latest in thread

Message-ID: <30918.1499376325@sss.pgh.pa.us>
Permalink:  ../30918.1499376325@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30918.1499376325@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 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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hello@tamaskalman.com
  Subject: Re: Modified rows are not marked as dead and as such vacuum is unable to clean them up
  In-Reply-To: <30918.1499376325@sss.pgh.pa.us>
  References: <CAAV1k2e7FLkpjHthkqeA3u13Nv8pV57uVkkmb6P8rh0x=z3Dcw@mail.gmail.com> <30918.1499376325@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