pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Perumal Raj <perucinci@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Autovacuum Transaction Wraparound
Date: Thu, 14 Mar 2019 15:44:47 -0700
Message-ID: <9e8e95ac-b4ca-ee3c-da2a-68427bd687a7@aklaver.com> (raw)
In-Reply-To: <CALvqh4qJRLd2w91saS-HbBTLa7bJYbQuGD5YY54A=FNtO3WQ6g@mail.gmail.com>
References: <CALvqh4pfm2yOuOJPO3hJ+42MyEMX2kEBYNk17uF4s=dVj=KB1A@mail.gmail.com>
	<1c659890-cbf7-8c6d-266c-7521ab674bbf@aklaver.com>
	<CALvqh4p1QU52G8uSa_3bpgzKMvz3qBPKVo_o3D=HYjeFBGvCSg@mail.gmail.com>
	<d4538d4c-9c76-66b8-c033-641492ce36d0@aklaver.com>
	<CALvqh4om9nPLn9E9U57gN+z5XTVoj0C_4fbjaQzMnWpqk5PgYA@mail.gmail.com>
	<6616bb40-9b76-a786-7276-ff1e2a9cd03b@aklaver.com>
	<CALvqh4qJRLd2w91saS-HbBTLa7bJYbQuGD5YY54A=FNtO3WQ6g@mail.gmail.com>

On 3/14/19 11:45 AM, Perumal Raj wrote:

Please reply to list also.
Ccing list.

> Thanks Adrian for the reply,
> 
> Yes , i went through the document.
> 
> My Only Worry is , Will i hit performance issue once i reach 200M 
> Age(default) even i have only static table.

If is truly static then there will be no or little xids generated  so 
the age will not be reached or reached slowly. Otherwise the normal 
autovacuuming will keep the xids under control. The caveat being an 
operation or operations that generate a lot of xids faster then the 
normal autovac settings can handle.

> 
> 
> 
> On Wed, Mar 13, 2019 at 12:23 PM Adrian Klaver 
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 3/11/19 1:24 PM, Perumal Raj wrote:
>      > Hi Adrian
>      >
>      > What was the full message?
>      >
>      >             autovacuum: VACUUM <table name >(to prevent wraparound)
>      >
>      > Though i am running vacuum manually (nowadays) and autovacuum is
>     running
>      > perfectly once its threshold reaches.
>      >
>      > What will happen if my DB reaches 200M transaction age again ? (
>     Here my
>      > understanding is no dead tuples to cleanup --- I may be missing full
>      > concept , Please correct me if i am wrong) .
>      >
>      > What will be impact to DB ( Performance ) During Vacuum freeze ( My
>      > Assumption is autovacuum will run "vacuum freeze" once DB age
>     reached
>      > 200M ) ?
> 
>     I would read this:
> 
>     https://www.postgresql.org/docs/9.2/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND
> 
>     I believe it will answer most of your questions.
> 
>      >
>      > When should i consider to increase pg_settings value with respect to
>      > Autovacuum ?
>      >
>      > Regards,
>      >
>      >
> 
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (7+ messages)

Message-ID: <9e8e95ac-b4ca-ee3c-da2a-68427bd687a7@aklaver.com>
Permalink:  ../9e8e95ac-b4ca-ee3c-da2a-68427bd687a7@aklaver.com/
Also on:    postgresql.org/message-id/9e8e95ac-b4ca-ee3c-da2a-68427bd687a7@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, perucinci@gmail.com
  Subject: Re: Autovacuum Transaction Wraparound
  In-Reply-To: <9e8e95ac-b4ca-ee3c-da2a-68427bd687a7@aklaver.com>
  References: <CALvqh4pfm2yOuOJPO3hJ+42MyEMX2kEBYNk17uF4s=dVj=KB1A@mail.gmail.com> <1c659890-cbf7-8c6d-266c-7521ab674bbf@aklaver.com> <CALvqh4p1QU52G8uSa_3bpgzKMvz3qBPKVo_o3D=HYjeFBGvCSg@mail.gmail.com> <d4538d4c-9c76-66b8-c033-641492ce36d0@aklaver.com> <CALvqh4om9nPLn9E9U57gN+z5XTVoj0C_4fbjaQzMnWpqk5PgYA@mail.gmail.com> <6616bb40-9b76-a786-7276-ff1e2a9cd03b@aklaver.com> <CALvqh4qJRLd2w91saS-HbBTLa7bJYbQuGD5YY54A=FNtO3WQ6g@mail.gmail.com> <9e8e95ac-b4ca-ee3c-da2a-68427bd687a7@aklaver.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