From: Edson Richter <edsonrichter@hotmail.com>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: david@pgmasters.net <david@pgmasters.net>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: alvherre@2ndquadrant.com <alvherre@2ndquadrant.com>
Subject: RE: It is possible to force periodically switch xlog?
Date: Thu, 2 Apr 2020 02:31:16 +0000
Message-ID: <MN2PR01MB5327F7DA9CAB8BB56BFDC5FBCFC60@MN2PR01MB5327.prod.exchangelabs.com> (raw)
In-Reply-To: <20200402.102245.1393419232249784757.horikyota.ntt@gmail.com>
References: <20200401225505.GA4807@alvherre.pgsql>
<BYAPR01MB531850840CD20F19D922BF10CFC90@BYAPR01MB5318.prod.exchangelabs.com>
<3240828e-3363-59af-8199-3766539923f9@pgmasters.net>
<20200402.102245.1393419232249784757.horikyota.ntt@gmail.com>
________________________________
De: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Enviado: quarta-feira, 1 de abril de 2020 22:22
Para: david@pgmasters.net <david@pgmasters.net>
Cc: edsonrichter@hotmail.com <edsonrichter@hotmail.com>; pgsql-general@postgresql.org <pgsql-general@postgresql.org>; alvherre@2ndquadrant.com <alvherre@2ndquadrant.com>
Assunto: Re: It is possible to force periodically switch xlog?
At Wed, 1 Apr 2020 21:09:20 -0400, David Steele <david@pgmasters.net> wrote in
> On 4/1/20 7:19 PM, Edson Richter wrote:
> > IIRC archive_timeout does precisely that.
> > I would assume that "archive_mode" must be "on" or "always" - but I do
> > have "archive_mode=off".
>
> I'm not sure what the point of switching the WAL segment would be with
> archive_mode=off.
>
> What are you trying to accomplish?
Also I'm a bit curious about that, but anyway archive_timeout works
even with archive_mode=off. The name looks being a bit off of its
substance.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
Good to know!
But meanwhile I've wrote a small bash script that executs pg_switch_xlog() and scheduled it in Crond.
Regards,
Edson
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, horikyota.ntt@gmail.com, david@pgmasters.net, alvherre@2ndquadrant.com
Subject: Re: It is possible to force periodically switch xlog?
In-Reply-To: <MN2PR01MB5327F7DA9CAB8BB56BFDC5FBCFC60@MN2PR01MB5327.prod.exchangelabs.com>
References: <20200401225505.GA4807@alvherre.pgsql> <BYAPR01MB531850840CD20F19D922BF10CFC90@BYAPR01MB5318.prod.exchangelabs.com> <3240828e-3363-59af-8199-3766539923f9@pgmasters.net> <20200402.102245.1393419232249784757.horikyota.ntt@gmail.com> <MN2PR01MB5327F7DA9CAB8BB56BFDC5FBCFC60@MN2PR01MB5327.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