pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erik Serrano <eserranos@gmail.com>
Cc: Holger Jakobs <holger@jakobs.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Vacuum Full not clean the table
Date: Tue, 07 Feb 2023 14:03:31 -0500
Message-ID: <3215331.1675796611@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+dvXXu1OMaJviuJ3vZhq-3Qe2EFEfRsQkTrdA+HviU-A1LV8w@mail.gmail.com>
References: <CA+dvXXu2krLsS3K_GJkdrCT1hbu+G0rxAjh1KKot5TGrBpn8AA@mail.gmail.com>
	<8aacabc6-5919-5f37-9c9a-2a3cd67adfa3@jakobs.com>
	<CA+dvXXu1OMaJviuJ3vZhq-3Qe2EFEfRsQkTrdA+HviU-A1LV8w@mail.gmail.com>

Erik Serrano <eserranos@gmail.com> writes:
> For this reason, I appreciate that you can even guide me to see what is
> happening or could have happened regarding the end of the process without
> the expected result, which is cleaning the table.

If vacuum isn't removing dead tuples, it's because there is an open
transaction somewhere that can still "see" those tuples.  Check for
old open transactions in pg_stat_activity and pg_prepared_xacts.

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <3215331.1675796611@sss.pgh.pa.us>
Permalink:  ../3215331.1675796611@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3215331.1675796611@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, eserranos@gmail.com, holger@jakobs.com
  Subject: Re: Vacuum Full not clean the table
  In-Reply-To: <3215331.1675796611@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