From: Jerry Sievers <gsievers19@comcast.net>
To: Torsten Krah <krah.tm@gmail.com>
Cc: pgsql-general\@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Force WAL cleanup on running instance
Date: Wed, 11 Mar 2020 11:46:33 -0500
Message-ID: <87sgievnyu.fsf@jsievers.enova.com> (raw)
In-Reply-To: <ea15b0c186f7ce94fbcf78e8ee1a4bad8745af09.camel@gmail.com>
References: <3f91429eb65ac8aa3c77361c587e786a290b92f0.camel@gmail.com>
<CANP8+j+q05ZsoZieAwJrbniOZmWjo6hXhzW4X86uL4HqdF-y_A@mail.gmail.com>
<ea15b0c186f7ce94fbcf78e8ee1a4bad8745af09.camel@gmail.com>
Torsten Krah <krah.tm@gmail.com> 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
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: gsievers19@comcast.net, krah.tm@gmail.com
Subject: Re: Force WAL cleanup on running instance
In-Reply-To: <87sgievnyu.fsf@jsievers.enova.com>
References: <3f91429eb65ac8aa3c77361c587e786a290b92f0.camel@gmail.com> <CANP8+j+q05ZsoZieAwJrbniOZmWjo6hXhzW4X86uL4HqdF-y_A@mail.gmail.com> <ea15b0c186f7ce94fbcf78e8ee1a4bad8745af09.camel@gmail.com> <87sgievnyu.fsf@jsievers.enova.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