Re: Modified rows are not marked as dead and as such vacuum is unable to clean them up

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tamás András Kálmán <hello(at)tamaskalman(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Modified rows are not marked as dead and as such vacuum is unable to clean them up
Date: 2017-07-06 21:25:25
Message-ID: 30918.1499376325@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?B?VGFtw6FzIEFuZHLDoXMgS8OhbG3DoW4=?= <hello(at)tamaskalman(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2017-07-06 22:04:33 psql doesn't pass on exported shell environment functions
Previous Message Tamás András Kálmán 2017-07-06 20:54:06 Modified rows are not marked as dead and as such vacuum is unable to clean them up