RE: It is possible to force periodically switch xlog?

From: Edson Richter <edsonrichter(at)hotmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: RE: It is possible to force periodically switch xlog?
Date: 2020-04-01 23:19:30
Message-ID: BYAPR01MB531850840CD20F19D922BF10CFC90@BYAPR01MB5318.prod.exchangelabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


________________________________
De: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Enviado: quarta-feira, 1 de abril de 2020 19:55
Para: Abdul Sayeed <abdulsayeed24(at)gmail(dot)com>
Cc: Edson Richter <edsonrichter(at)hotmail(dot)com>; pgsql-general <pgsql-general(at)postgresql(dot)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&amp;data=02%7C01%7C%7Cbcfb62c8875b46399dcd08d7d68fbab1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637213785102248653&amp;sdata=6AHDGdb6Ommbv%2FdFImDVFJvsJ4eomP7jWWMlJjiOgvg%3D&amp;reserved=0
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Gauthier 2020-04-01 23:39:14 using a common key value on both sides of a union ?
Previous Message Alvaro Herrera 2020-04-01 22:55:05 Re: It is possible to force periodically switch xlog?