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