Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3PNn-0004V1-RS for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Sep 2018 17:38:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g3PNm-0007u9-Ag for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Sep 2018 17:38:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3PNl-0007tu-Vw for pgsql-hackers@lists.postgresql.org; Fri, 21 Sep 2018 17:38:22 +0000 Received: from forward4o.cmail.yandex.net ([2a02:6b8:0:1a72::289]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3PNj-0004pb-9v for pgsql-hackers@lists.postgresql.org; Fri, 21 Sep 2018 17:38:21 +0000 Received: from mxback8j.mail.yandex.net (mxback8j.mail.yandex.net [IPv6:2a02:6b8:0:1619::111]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id 26FF221872; Fri, 21 Sep 2018 20:38:17 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback8j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id DPOtJfOXva-cGv8CJJx; Fri, 21 Sep 2018 20:38:16 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zsrv.org; s=mail; t=1537551496; bh=Kuc401j7Z2kqOFLJlklK1wYS7T9wHlrbxeIQidYzehs=; h=From:To:Cc:In-Reply-To:References:Subject:Date:Message-Id; b=hPiWNolgcB5fb/V6UxIx2/ikcMFBo9/z/SYiMN8HSXgtN3jC3AIWJxPTY+rNL5hu1 gqEsPvs+qShmggY75N0G11XLfQWeD5nHWZQbY0maeuD6lPla6DdbHshMIDms6Ilo0a ymDI2uQpyYNIXB9XYOC7t6D7sFgjpitIWaqV0lNI= Authentication-Results: mxback8j.mail.yandex.net; dkim=pass header.i=@zsrv.org Received: by myt5-c56023d17c6b.qloud-c.yandex.net with HTTP; Fri, 21 Sep 2018 20:38:16 +0300 From: Sergei Kornilov To: Robert Haas , Alvaro Herrera Cc: Michael Paquier , PostgreSQL Hackers In-Reply-To: References: <20180914153554.562muwr3uwujno75@alvherre.pgsql> Subject: Re: pgsql: Improve autovacuum logging for aggressive and anti-wraparound ru MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 21 Sep 2018 20:38:16 +0300 Message-Id: <7924791537551496@myt5-c56023d17c6b.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, Robert > My first question was whether TWO of them were dead code ... isn't an > aggressive vacuum to prevent wraparound, and a vacuum to prevent > wraparound aggressive? Maybe i am wrong, aggressive autovacuum was your commit. Message split was in b55509332f50f998b6e8b3830a51c5b9d8f666aa Aggressive autovacuum was in fd31cd265138019dcccc9b5fe53043670898bc9f If aggressive really is wraparound without difference - i think we need refactor this code, it is difficult have two different flags for same purpose. But as far i can see it is possible have aggressive non-wraparound vacuum. One important difference - regular and aggressive regular can be canceled by backend,.wraparound autovacuum can not. (by checking PROC_VACUUM_FOR_WRAPAROUND in src/backend/storage/lmgr/proc.c ) regards, Sergei