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.92) (envelope-from ) id 1jC4VN-0000jB-VC for pgsql-general@arkaria.postgresql.org; Wed, 11 Mar 2020 16:46:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jC4VM-0007wO-Mf for pgsql-general@arkaria.postgresql.org; Wed, 11 Mar 2020 16:46:48 +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 1jC4VL-0007wH-MD for pgsql-general@lists.postgresql.org; Wed, 11 Mar 2020 16:46:48 +0000 Received: from resqmta-po-09v.sys.comcast.net ([2001:558:fe16:19:96:114:154:168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jC4VI-0004LN-UG for pgsql-general@lists.postgresql.org; Wed, 11 Mar 2020 16:46:46 +0000 Received: from resomta-po-12v.sys.comcast.net ([96.114.154.236]) by resqmta-po-09v.sys.comcast.net with ESMTP id C1HijMtK8wtylC4VHjp2nY; Wed, 11 Mar 2020 16:46:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1583945203; bh=8G9Qk40rTyCI8FGaKnjxsouEXfk0G843Sbc7If7jzqs=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=WooQ1Gk20hsuU8yHftJZTgfFxIzUKHQdzytE6dDWWjrwCOtZrbMGNS6X1/Zar3Bkh Fjjvy34UefsOUCZHp6OIrwqLLW+Ot1U8Edn4Nha6S97XW7gSj9OFTbgSeD90AiLtio 5ch+QqNgRhD4cWvHmTVQYCyswy0IXSCPH3U2H3fsGhk6AmtfnqzpLeOu0SAZGNpbra ALIIh1h8D+8VYSEnIfS7g3fa+z4y/Wvgn+45xAjt7VtM61D9TL6Ml4IHViHmvtyyC7 H/VSVpNscO0vWhyojKhYTovQxrSMokA0nDUaFHBrDQ1NMc0M9deSMaQomAEp6dcc1G pUDlwEsP0t0Bg== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-po-12v.sys.comcast.net with ESMTPA id C4V7j0LMVECxpC4V8jAGM0; Wed, 11 Mar 2020 16:46:41 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedugedruddvvddgledvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpeflvghrrhihucfuihgvvhgvrhhsuceoghhsihgvvhgvrhhsudelsegtohhmtggrshhtrdhnvghtqeenucfkphepuddvrdeftddrudehledrvddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepjhhsihgvvhgvrhhsrdgtohhmtggrshhtrdhnvghtpdhinhgvthepuddvrdeftddrudehledrvddtpdhmrghilhhfrhhomhepghhsihgvvhgvrhhsudelsegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepkhhrrghhrdhtmhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-Xfinity-VMeta: sc=-100.00;st=legit Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id A55ED26005A; Wed, 11 Mar 2020 11:46:33 -0500 (CDT) From: Jerry Sievers To: Torsten Krah Cc: "pgsql-general\@lists.postgresql.org" Subject: Re: Force WAL cleanup on running instance References: <3f91429eb65ac8aa3c77361c587e786a290b92f0.camel@gmail.com> Date: Wed, 11 Mar 2020 11:46:33 -0500 In-Reply-To: (Torsten Krah's message of "Wed, 11 Mar 2020 17:01:54 +0100") Message-ID: <87sgievnyu.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Torsten Krah writes: > Am Mittwoch, den 11.03.2020, 15:45 +0000 schrieb Simon Riggs: > >> The size of the task varies, so sometimes takes longer than 60s, >> depending >> upon your hardware. > > Yes that's what I am observing and why I am asking if there is some > select statement or command which triggers that task and returns after > it has finished - as I can't predict how long that task may run. If your site can afford a restart after the bulk load, 1. Clean shutdown. 2. pg_resetwal 3. Start That should leave you with a very small N WAL files, perhaps just 1, though I've not run it lately to reverify. HTH > > kind regards > > Torsten -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net