pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-general@postgresql.org
Subject: Re: [ADMIN] WARNING: database must be vacuumed within 8439472 transactions
Date: Mon, 07 Jul 2014 15:57:40 -0700
Message-ID: <53BB25E4.5080400@hogranch.com> (raw)
In-Reply-To: <CAOf_bQbR8nLQ4-yJ9bqw8P980NeVJYVSeK=FTYJctazYr0kuWw@mail.gmail.com>
References: <llqby44xt4iugpyxywv1ecdx.1404767140640@email.android.com>
	<CAOf_bQbR8nLQ4-yJ9bqw8P980NeVJYVSeK=FTYJctazYr0kuWw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 7/7/2014 2:14 PM, Prabhjot Sheena wrote:
> i will run full vacuum than and see how it goes.

do make sure there aren't any OLD pending transactions hanging around.  
if you have any stalled client connections that have left a transaction 
open for weeks/months, vacuum can't free any tuples newer than the 
oldest transaction.

select * from pg_stat_activity where xact_start < now()-interval '1 hour';

will list all connections with transactions over 1 hour old.







-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast



-- 
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 (20+ messages)  latest in thread

Message-ID: <53BB25E4.5080400@hogranch.com>
Permalink:  ../53BB25E4.5080400@hogranch.com/
Also on:    postgresql.org/message-id/53BB25E4.5080400@hogranch.com

 · 

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: pierce@hogranch.com, pgsql-general@postgresql.org
  Subject: Re: [ADMIN] WARNING: database must be vacuumed within 8439472 transactions
  In-Reply-To: <53BB25E4.5080400@hogranch.com>

* 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