pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Armand du Plessis <adp@bank.io>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Transaction ID wrap limit is log entries
Date: Tue, 21 May 2013 12:41:52 +0200
Message-ID: <CANf99sUYFd0My8hYu0kEGjeeA7idw_rzSc9DA2mG3-qq7PJCHw@mail.gmail.com> (raw)
In-Reply-To: <CANf99sXqC_Dd4POPp9f77rC=bHJiZ=_Vq5J7Kri1RF3TUtufmw@mail.gmail.com>
References: <CANf99sUyKcOpuacR_Lms4JpAfOV1KnskJM4EFNSAB3x3-=zCRw@mail.gmail.com>
	<CA+U5nMKfm0xrMgy_ND=1LKBrYUCC0bU_g_=V7m_Jpa8zDe=scg@mail.gmail.com>
	<CANf99sXOekH0m0TBE2uQJuUai0nRqiOE1mUwmoiyj8qTcL8EYQ@mail.gmail.com>
	<CANf99sXZ9m4J6QXxecFJprUF0Njs+WNn1RTWsiYHT9To_bnBSA@mail.gmail.com>
	<3238.1369055503@sss.pgh.pa.us>
	<CANf99sXWSJFXP=7UY0UG=FLivGL-nbHBg6W4qc1hs5qEP6tOgw@mail.gmail.com>
	<CANf99sXqC_Dd4POPp9f77rC=bHJiZ=_Vq5J7Kri1RF3TUtufmw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Just one thing to add, this is not a table that's gone for long periods
without a vacuum, it's been autovacuumed regularly and still is without
affecting the transaction id. Also double checked for storage parameters on
the table that might affect it and nothing there.

On Tue, May 21, 2013 at 10:37 AM, Armand du Plessis <adp@bank.io> wrote:

>
> On Mon, May 20, 2013 at 3:21 PM, Armand du Plessis <adp@bank.io> wrote:
>
>> On Mon, May 20, 2013 at 3:11 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>
>>> Armand du Plessis <adp@bank.io> writes:
>>> > The autovacuum completed (after many hours) however it didn't seem to
>>> have
>>> > frozen any old pages as it just kicks off again right away with the
>>> same
>>> > reason (VACUUM ANALYZE public.messages (to prevent wraparound))
>>>
>>> I suspect it's unable to move the table's min XID forward at all because
>>> there is some old open transaction preventing cleanup of very old dead
>>> tuples.  Look for old xact_start times in pg_stat_activity.  Also look
>>> for old entries in pg_prepared_xacts.  If you find any, get rid of them.
>>
>>
> This now had a full vacuum on the table but the table's xid is still
> increasing.
>
> "messages";1061103361;"62 GB"
>
>
> It's gone up from 105xxx yesterday. I've confirmed there's no old
> transactions in pg_stat_activity or pg_prepared_xacts and everything else
> seems fine. I can see the completion in the log and see it reflected as
> last_vacuum in pg_stat_user_tables.
>
> 2013-05-21 08:01:44.910
> UTC,"postgres","datase",6921,"[local]",519a9497.1b09,3,"VACUUM",2013-05-20
> 21:24:39 UTC,51/0,0,LOG,00000,"duration: 38210856.820 ms  statement: vacuum
> messages;",,,,,,,,,"psql"
>
> I've bumped up the autovacuum_freeze_max_age yesterday so this was a
> normal vacuum unlike the wrap-around autovacuums from the original post.
>
> Settings :
> autovacuum_freeze_max_age : 1500000000
> vacuum_freeze_min_age : 25000000
> vacuum_freeze_table_age: 150000000
>
> It's Postgres 9.2.3.
>
> I might just be missing something but it's worrying me that it's just
> increasing even after the vacuum.
>
> Kind regards,
>
> Armand
>
>
>

view thread (8+ messages)

Message-ID: <CANf99sUYFd0My8hYu0kEGjeeA7idw_rzSc9DA2mG3-qq7PJCHw@mail.gmail.com>
Permalink:  ../CANf99sUYFd0My8hYu0kEGjeeA7idw_rzSc9DA2mG3-qq7PJCHw@mail.gmail.com/
Also on:    postgresql.org/message-id/CANf99sUYFd0My8hYu0kEGjeeA7idw_rzSc9DA2mG3-qq7PJCHw@mail.gmail.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 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-admin@postgresql.org
  Cc: adp@bank.io
  Subject: Re: Transaction ID wrap limit is log entries
  In-Reply-To: <CANf99sUYFd0My8hYu0kEGjeeA7idw_rzSc9DA2mG3-qq7PJCHw@mail.gmail.com>
  References: <CANf99sUyKcOpuacR_Lms4JpAfOV1KnskJM4EFNSAB3x3-=zCRw@mail.gmail.com> <CA+U5nMKfm0xrMgy_ND=1LKBrYUCC0bU_g_=V7m_Jpa8zDe=scg@mail.gmail.com> <CANf99sXOekH0m0TBE2uQJuUai0nRqiOE1mUwmoiyj8qTcL8EYQ@mail.gmail.com> <CANf99sXZ9m4J6QXxecFJprUF0Njs+WNn1RTWsiYHT9To_bnBSA@mail.gmail.com> <3238.1369055503@sss.pgh.pa.us> <CANf99sXWSJFXP=7UY0UG=FLivGL-nbHBg6W4qc1hs5qEP6tOgw@mail.gmail.com> <CANf99sXqC_Dd4POPp9f77rC=bHJiZ=_Vq5J7Kri1RF3TUtufmw@mail.gmail.com> <CANf99sUYFd0My8hYu0kEGjeeA7idw_rzSc9DA2mG3-qq7PJCHw@mail.gmail.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