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 1jJpda-0003lC-8c for pgsql-general@arkaria.postgresql.org; Thu, 02 Apr 2020 02:31:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJpdZ-0003ce-5b for pgsql-general@arkaria.postgresql.org; Thu, 02 Apr 2020 02:31:21 +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 1jJpdY-0003Yu-P5 for pgsql-general@lists.postgresql.org; Thu, 02 Apr 2020 02:31:20 +0000 Received: from mail-bn8nam11olkn2107.outbound.protection.outlook.com ([40.92.20.107] helo=NAM11-BN8-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 1jJpdW-0002kQ-1c for pgsql-general@postgresql.org; Thu, 02 Apr 2020 02:31:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LmpoI+PRup+QlRnD8UNgvCq/bfE2ZJsNh4dKb0N28O0N3GDUG7W/ZuFyALZqxzbZYo5ZZz7oSo4YdOcYXJt1zzfM2H11hGLxg2TVjGbbTANi/8hJQrAD+cmSKoEVKuYqJXWYIPbb2arAiMFJgqu9VD/n/BYPgAG2l8Lve4CF3lmVynlGU17+xEob48UvKmT63BGGkvSHnErmO+YExyg9Gv9K96fF74SZpQPNYopsJ/ezEhDu5ZmRPcUAvhObBJHyGm74CrKuhigCu56usAHUaUTjf108pg3zUAzDpJzYZ9TeAsid7yf7fmBcosBXU5P9mU59uBbClAixEX7C4C5w+A== 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=a5GWEuY2W1cmtDWp6d/T59w/cl+tgVag81AIOiDkh8U=; b=jaqDaVQP9/saW5Op7FA3+oRkIzKmQL/RcxGe6cdf/sq0803mFWcfpep6s9ZMeSz5mGk7ICqcccc1CVZDGJYIntMHfR/JOGhGXqpYYtQhA5sF+I2E+rxGDnU81PDCvqqfKVMyDDTrl0lDwvHUZztboD5NaPX8DrQFJRoZ3n8YI9UWNnFhG6PPnKZSfK6ukrZEr81LzaJXzthyJvli5LbityYNGIURt5carNlQODHShZYIPKeoZzqAlvHQhC0CGi3kkx7ArUAF4/Oy8+KsTLHPWLuhprYpUyJ5Ai1LsTFy3dhansVvN56z9tZq0/feJAHQhGpEgjZLIlfgFvWplC4KiQ== 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=a5GWEuY2W1cmtDWp6d/T59w/cl+tgVag81AIOiDkh8U=; b=nG/vJXJCxo+QuGV4yJx69SDyYk6037BDaiQ3oT4d0uTTYkSBCqQ6qTQqVEeizpKe9bpTEjk0AFnC97UXCfyFWfOQCJ57zJurcgRUttcqlZUx4brRxvK6uJK4dX3JhhiiG5DEBBJnTwXy3O2ED4EA1HWIFyAg5eLpluvUiiz/rq0AyShDqh9LGEOHoEO2fsCjtiukghwSRMSGgFs2HhjfXgtGtNs+82Ilr0Bz4kLuUw4JRh9F42L+kW3emzHXbjxCpOQFhL6yeLO98oyuUAeicXCxMGUR7k3LT1okCTwZrOreMDlGjhkUA8gpoWgDo7xFaRqY9oNzS23/d7A7GYEjdQ== Received: from BN8NAM11FT021.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::4e) by BN8NAM11HT091.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::391) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Thu, 2 Apr 2020 02:31:16 +0000 Received: from MN2PR01MB5327.prod.exchangelabs.com (2a01:111:e400:fc4b::40) by BN8NAM11FT021.mail.protection.outlook.com (2a01:111:e400:fc4b::370) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15 via Frontend Transport; Thu, 2 Apr 2020 02:31:16 +0000 Received: from MN2PR01MB5327.prod.exchangelabs.com ([fe80::651e:5e33:5b2a:adee]) by MN2PR01MB5327.prod.exchangelabs.com ([fe80::651e:5e33:5b2a:adee%7]) with mapi id 15.20.2878.016; Thu, 2 Apr 2020 02:31:16 +0000 From: Edson Richter To: Kyotaro Horiguchi , "david@pgmasters.net" CC: "pgsql-general@postgresql.org" , "alvherre@2ndquadrant.com" Subject: RE: It is possible to force periodically switch xlog? Thread-Topic: It is possible to force periodically switch xlog? Thread-Index: AQHWCHDvNSgNkEXbt0qo2wE17Cf1ZKhk0/8AgAAMSYCAAAXzqYAAH5AAgAADv4CAABKnqA== Date: Thu, 2 Apr 2020 02:31:16 +0000 Message-ID: References: <20200401225505.GA4807@alvherre.pgsql> <3240828e-3363-59af-8199-3766539923f9@pgmasters.net>,<20200402.102245.1393419232249784757.horikyota.ntt@gmail.com> In-Reply-To: <20200402.102245.1393419232249784757.horikyota.ntt@gmail.com> Accept-Language: pt-BR, en-US Content-Language: pt-BR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:A9CB3B815A9992CEEE4BD16B9F7EB4DF82DFBBB7D316F6FAE0E103203A341898;UpperCasedChecksum:C79BCE9B63294AD66D275EB054B8C463BB6F92DA0C6A201EFECDC3638789E815;SizeAsReceived:7258;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [9JRrKdj+fE2ELUp5NLYfjPfnstgHUVn/] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: d913bca4-2980-45e4-ee56-08d7d6adeb67 x-ms-traffictypediagnostic: BN8NAM11HT091: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 08yQaPrKrO9Ujk+Ul0HIyeeDI0KupQl7GWXTHmnJPio+ZSODgtjJDV1sIBvi7aZzzvE5hIxCf1Uf1ymhy78CgIC5rXqWEb/p5c2aIHWolw5eVYKAvLa5sGiWWgESiEfvcqNYd2kp3xL44vH1oX1J1yhDdqLsLsz7BEyre/JgQMdk3RxP4tUG6ztIihYj+/GZ x-ms-exchange-antispam-messagedata: U2XUYoIZ4yoNSBc4bHYajn4D7mghd3JCo/aSJBIc4zUozirk56xtCYG8aZNGmPuZoJvfnbtPJU+0ac3UZdMaWctHqCJ6/wyNyhCcLsHneNXECAu8q28d8Z7KrGDHOkuCAdr7SdfEfxOUJzC83Kwdjg== x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_MN2PR01MB5327F7DA9CAB8BB56BFDC5FBCFC60MN2PR01MB5327prod_" 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: d913bca4-2980-45e4-ee56-08d7d6adeb67 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Apr 2020 02:31:16.2218 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM11HT091 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_MN2PR01MB5327F7DA9CAB8BB56BFDC5FBCFC60MN2PR01MB5327prod_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ________________________________ De: Kyotaro Horiguchi Enviado: quarta-feira, 1 de abril de 2020 22:22 Para: david@pgmasters.net Cc: edsonrichter@hotmail.com ; pgsql-general@post= gresql.org ; alvherre@2ndquadrant.com Assunto: Re: It is possible to force periodically switch xlog? At Wed, 1 Apr 2020 21:09:20 -0400, David Steele 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=3Doff". > > I'm not sure what the point of switching the WAL segment would be with > archive_mode=3Doff. > > What are you trying to accomplish? Also I'm a bit curious about that, but anyway archive_timeout works even with archive_mode=3Doff. 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 --_000_MN2PR01MB5327F7DA9CAB8BB56BFDC5FBCFC60MN2PR01MB5327prod_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable



De: Kyotar= o 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@2ndq= uadrant.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 &l= t;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&quo= t; or "always" - but I do
> > have "archive_mode=3Doff".
>
> I'm not sure what the point of switching the WAL segment would be with=
> archive_mode=3Doff.
>
> What are you trying to accomplish?

Also I'm a bit curious about that, but anyway archive_timeout works
even with archive_mode=3Doff. 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

--_000_MN2PR01MB5327F7DA9CAB8BB56BFDC5FBCFC60MN2PR01MB5327prod_--