From: Edson Richter <edsonrichter@hotmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: RE: It is possible to force periodically switch xlog?
Date: Wed, 1 Apr 2020 23:19:30 +0000
Message-ID: <BYAPR01MB531850840CD20F19D922BF10CFC90@BYAPR01MB5318.prod.exchangelabs.com> (raw)
In-Reply-To: <20200401225505.GA4807@alvherre.pgsql>
References: <CAHb=FFwpUZ3rSb+zMNqVUkOHfNd_YOOKWeCMHz-KL4oi5+tSqA@mail.gmail.com>
<20200401225505.GA4807@alvherre.pgsql>
________________________________
De: Alvaro Herrera <alvherre@2ndquadrant.com>
Enviado: quarta-feira, 1 de abril de 2020 19:55
Para: Abdul Sayeed <abdulsayeed24@gmail.com>
Cc: Edson Richter <edsonrichter@hotmail.com>; pgsql-general <pgsql-general@postgresql.org>
Assunto: Re: It is possible to force periodically switch xlog?
On 2020-Apr-02, Abdul Sayeed wrote:
> Hi Edson,
>
> You can switch by using below command below PG 10.
>
> Select pg_switch_xlog();
>
> And there is no parameter present to switch it.
IIRC archive_timeout does precisely that.
I would assume that "archive_mode" must be "on" or "always" - but I do have "archive_mode=off".
Regards,
Edson
--
Álvaro Herrera https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.2ndquadrant.com%2F&dat...
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: edsonrichter@hotmail.com
Subject: Re: It is possible to force periodically switch xlog?
In-Reply-To: <BYAPR01MB531850840CD20F19D922BF10CFC90@BYAPR01MB5318.prod.exchangelabs.com>
References: <CAHb=FFwpUZ3rSb+zMNqVUkOHfNd_YOOKWeCMHz-KL4oi5+tSqA@mail.gmail.com> <20200401225505.GA4807@alvherre.pgsql> <BYAPR01MB531850840CD20F19D922BF10CFC90@BYAPR01MB5318.prod.exchangelabs.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