Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJme4-00047u-VA for pgsql-general@arkaria.postgresql.org; Wed, 01 Apr 2020 23:19:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJme2-0001LS-Dj for pgsql-general@arkaria.postgresql.org; Wed, 01 Apr 2020 23:19:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJme1-0001GV-Iv for pgsql-general@lists.postgresql.org; Wed, 01 Apr 2020 23:19:38 +0000 Received: from mail-dm6nam11olkn2057.outbound.protection.outlook.com ([40.92.19.57] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJmdw-0001ED-J1 for pgsql-general@postgresql.org; Wed, 01 Apr 2020 23:19:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gxO4AA2C2pMf/Q23+LJQjxb+pxEplief5Ug0S/3/eNbr3n0z9b65NovNUufMoK/HvrkGRqvKaB9ST46J3U7McilD+4B3j5rr/Brr4Hrz+6L6mfvQzGwfcIhfhg11XenQa/hht1qVNKXWLQbgoqhiNCOVF8osfZBpuAQDq82Xu//4ZgyPe/BBoNmaYnuhiXPTfcz+TL1Ej2YzHd8aNG0lHOj+BSZHkW0Sge91U6u24fYDxiFZvsVZA8VgudyFgH2ykyTmmk1clKsX0AvQYpReMc4ECjQn6EBIHiWBC/B/jL2z9+qcg0T2obv0G7Xp0mkCG1a/dBI8/O2siPQj/nGCGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZqvLFhgE4XAHb0EdIZ7n6i0U86meBWIQhDdKdakXRn0=; b=TciOfdWJzPaUSIG36NFyaf2Deu2cvsy/u4ixSl8/K1a8R1eaoZhL3mE6Yba2uevFfC0Y2y1Rpo+C8waBYaFVXk6h2pXNKJJggWGY86R59tzLAaKI/MBJ+KDQaX+4RSFDlglO6+/QPU8eG8vAOJfkEdqDHzjmyLqzcD1g6l7CRfG5iEzL2UFGFcB5iqLuScpd+L2mbgN8DSOuwJKFr1mxwqPsEizBOKldRkZMZeBzcByoAMghPAen5BYV1NeNBI8ZSwL+EAy/WF+vICmIpsVQ6FVdHTN/U8joCWn7hVcBsFbjhyXM19ij8VDHfKgCtyNUPA1hR0PT6Ly09HudVhRuvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZqvLFhgE4XAHb0EdIZ7n6i0U86meBWIQhDdKdakXRn0=; b=q3samS0liCCUzmJVuYWMAK8pIhnCEGQBZXVeNhxFdH+dPJfp0Y6Glv2zCxWPSH+9U9c4UAC+ZI5MBsDKm3SYOAKOzF0ajCJz2DdvvSLDsHrFJnZVOFhK6o2zXGL1LtPUbCzMWG4Jm8hZn0lGFv50nia1GD8ae+U8PvJsCEXD6VP3zu0ic9C9tiveZ8Y26nsE7EKdPcAjtoDC2u4lN4xxcoX5RgYBIjfDAmOvCnMg5AemZmMcqPRBN1JDa/Rd95ooOatPM1oys0/mpRwqqRNq2cCmkyUyPXFaMLGfEoau2Ncnm2zmCRP3gLWZLkWBIfQ+9BSu7lAGW9VAN4fwEuxoLw== Received: from BN8NAM11FT023.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::53) by BN8NAM11HT107.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::444) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Wed, 1 Apr 2020 23:19:30 +0000 Received: from BYAPR01MB5318.prod.exchangelabs.com (2a01:111:e400:fc4b::4f) by BN8NAM11FT023.mail.protection.outlook.com (2a01:111:e400:fc4b::359) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15 via Frontend Transport; Wed, 1 Apr 2020 23:19:30 +0000 Received: from BYAPR01MB5318.prod.exchangelabs.com ([fe80::bc43:43a:4fde:d715]) by BYAPR01MB5318.prod.exchangelabs.com ([fe80::bc43:43a:4fde:d715%6]) with mapi id 15.20.2856.019; Wed, 1 Apr 2020 23:19:30 +0000 From: Edson Richter To: pgsql-general Subject: RE: It is possible to force periodically switch xlog? Thread-Topic: It is possible to force periodically switch xlog? Thread-Index: AQHWCHDvNSgNkEXbt0qo2wE17Cf1ZKhk0/8AgAAMSYCAAAXzqQ== Date: Wed, 1 Apr 2020 23:19:30 +0000 Message-ID: References: ,<20200401225505.GA4807@alvherre.pgsql> In-Reply-To: <20200401225505.GA4807@alvherre.pgsql> Accept-Language: pt-BR, en-US Content-Language: pt-BR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:604C2265019275B8C82A7DCFD13853285FF908B50E3B211E4EC4473FF6C5AFD2;UpperCasedChecksum:25F5EF90AA1FEA3A4420E16E452A7A745324B561373ED027BC76F956CE986606;SizeAsReceived:6903;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [CXhcwr+P4PLraMTm58ry0NnkPkpquH8d] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: fe6b84fb-2093-4658-e458-08d7d6932153 x-ms-traffictypediagnostic: BN8NAM11HT107: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GEXFQjhEJ/b+NdwGg0GB/Fa9+/SzFXs+KRAFerMRoxIrPR1teEPyIy4ivMG8qdQ2O9SlFqIx/kvW22hLDBDaVqGyeT2Qg/H6un22rLCy48Pe+YR7GftIStF6If7NmeglcXo7Djr5aQF4K1pKeaUphrKvMFBq+v3B/FTunQDX/j496qktZ/gNdBTWDk7gH92EcAGEp94Vp470p28pE5iKttGrbiwlCvgPqWcsP+9NEoE= x-ms-exchange-antispam-messagedata: GtIe/CFjJlL9U43eHuf4Cwv241fxXUyXrCAwkJOAg0dPPaYV9/LGSoj4MLw1dLnP55lHvKHZbrzl9wiFKhJTKWhytCiKg6rpWP+tLnOwWIUJODodwL0k+SgIOzYu6ly34K+6tKgkoMc460LH8pZ06A== x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_BYAPR01MB531850840CD20F19D922BF10CFC90BYAPR01MB5318prod_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: fe6b84fb-2093-4658-e458-08d7d6932153 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2020 23:19:30.3717 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM11HT107 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_BYAPR01MB531850840CD20F19D922BF10CFC90BYAPR01MB5318prod_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ________________________________ De: Alvaro Herrera Enviado: quarta-feira, 1 de abril de 2020 19:55 Para: Abdul Sayeed Cc: Edson Richter ; pgsql-general 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=3Doff". Regards, Edson -- =C1lvaro Herrera https://nam03.safelinks.protection.outlook.= com/?url=3Dhttps%3A%2F%2Fwww.2ndquadrant.com%2F&data=3D02%7C01%7C%7Cbcf= b62c8875b46399dcd08d7d68fbab1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C= 637213785102248653&sdata=3D6AHDGdb6Ommbv%2FdFImDVFJvsJ4eomP7jWWMlJjiOgv= g%3D&reserved=3D0 PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --_000_BYAPR01MB531850840CD20F19D922BF10CFC90BYAPR01MB5318prod_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable


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 &l= t;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= =3Doff".

Regards,

Edson
--_000_BYAPR01MB531850840CD20F19D922BF10CFC90BYAPR01MB5318prod_--