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 1fY4ja-0006TX-O6 for pgsql-general@arkaria.postgresql.org; Wed, 27 Jun 2018 07:19:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fY4jV-0000Zb-R8 for pgsql-general@arkaria.postgresql.org; Wed, 27 Jun 2018 07:19:17 +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 1fY4jV-0000Yz-JJ for pgsql-general@lists.postgresql.org; Wed, 27 Jun 2018 07:19:17 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fY4jN-0001uZ-RB for pgsql-general@postgresql.org; Wed, 27 Jun 2018 07:19:16 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id ADB5241060; Wed, 27 Jun 2018 09:19:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id 3urMBLHs9Hxz; Wed, 27 Jun 2018 09:19:06 +0200 (CEST) Message-ID: <1530083945.2417.4.camel@cybertec.at> Subject: Re: About "Cost-based Vacuum Delay" From: Laurenz Albe To: Ilyeop Yi Cc: pgsql-general@postgresql.org Date: Wed, 27 Jun 2018 09:19:05 +0200 In-Reply-To: <20180626011846epcas1p20251b8c9d48d5a43fafb10e8b4b4f19d~7kP_zi_2N1628916289epcas1p2k@epcas1p2.samsung.com> References: <20180614232929epcas1p1c0a03f435b0504f543933d3680c048e2~4KqbEAa9H3081430814epcas1p1i@epcas1p1.samsung.com> <1529065942.2841.2.camel@cybertec.at> <20180626011846epcas1p20251b8c9d48d5a43fafb10e8b4b4f19d~7kP_zi_2N1628916289epcas1p2k@epcas1p2.samsung.com> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ilyeop Yi wrote: > Currently, I am working with a workload that is mostly insert and update, and its performance suffers from autovacuum. > > I've adjusted parameters such as vacuum_cost_delay and vacuum_cost_limit, but they have no significant effect. > > So, I would like to find a way to pause a running vacuum during bursty insert/update period and resume the vacuum after that period. > > Is there such a way? Please keep the list copied. You can do ALTER TABLE mytab SET (autovacuum_enabled = off); Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com