Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4Z5y-0006QS-Gp for pgsql-general@arkaria.postgresql.org; Thu, 14 Mar 2019 22:45:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h4Z5w-0004xm-6h for pgsql-general@arkaria.postgresql.org; Thu, 14 Mar 2019 22:45:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4Z5u-0004c8-RA for pgsql-general@lists.postgresql.org; Thu, 14 Mar 2019 22:44:59 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4Z5n-0004Da-4H for pgsql-general@postgresql.org; Thu, 14 Mar 2019 22:44:57 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 38CFD21FAE; Thu, 14 Mar 2019 18:44:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 14 Mar 2019 18:44:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=Q BJjhUqYEY+mmlQYP/l39vn3WnOO9JiTq1kBhydOnQs=; b=XKcJgJ+6OYneGzxPz JYBfrjGZjyCN0y25jWRVkqI3YYFfFaBUnZFEL2FMXIgxIhIVCIpGZNNvnn4F2lNh kKG91GKvPHV5Tjot0IjkWjZgXDhw9BmS0N8nTnhdH/wvD9zLwbfZIRHpTzQl8leU H41bAqeSM6c/i5J85N/0a3uijjHf5oj/7/2UEHV6833eMt/sQdEE2sVsiMAw45z4 KEalL0Ev+B8cnQB8o+DoDusjy5YW5RKO4rj4ZoxdOVThcpPNnGBZSkLPMxg6uIQR yDuYrCD43YMn65e0iYDjJQbm1kbN7WXUzHYOTVAm2Xjl0lwDN1piAxuu8+n41FJA awrAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=QBJjhUqYEY+mmlQYP/l39vn3WnOO9JiTq1kBhydOn Qs=; b=xkuFw0clNoiXPb9hT98RbZNvc8L22cVR4wFe72sTWDIG0YrIWH8yjJrMZ CLcSqvsaRYffIwELL/nE9mbBBDsMvBsF03MFRNonltXWvpnrA7sBS3pe7lQgQjyE lGxlndtYngZlZY+ed8d1y8P3nQlkqhK2MDzrbmdtT7fCzN/yIZecGCVzhR8mJa72 wayQ3pEF/xh8CyRxc8X6KBGRl7hwmstbzrxZLnSet1LnlzAydXA3NncLt8WK6YOD NwYUaR7mG2r0CiSfYSBZUmOr5XzAd011OLxhxik/ptESISo6lNY2cgWtuB3X4Tuo kXoq3YW1EHGBQt4QXIyHKWW7zEYvg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrheefgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepphhoshhtghhrvghsqh hlrdhorhhgnecukfhppeehtddrudeljedrkedtrddvnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 1A3FFE4383; Thu, 14 Mar 2019 18:44:49 -0400 (EDT) Subject: Re: Autovacuum Transaction Wraparound To: Perumal Raj References: <1c659890-cbf7-8c6d-266c-7521ab674bbf@aklaver.com> <6616bb40-9b76-a786-7276-ff1e2a9cd03b@aklaver.com> Cc: pgsql-general From: Adrian Klaver Message-ID: <9e8e95ac-b4ca-ee3c-da2a-68427bd687a7@aklaver.com> Date: Thu, 14 Mar 2019 15:44:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > > wrote: > > On 3/11/19 1:24 PM, Perumal Raj wrote: > > Hi Adrian > > > > What was the full message? > > > >             autovacuum: VACUUM (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 > -- Adrian Klaver adrian.klaver@aklaver.com