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 1jJmGQ-0001hz-M9 for pgsql-general@arkaria.postgresql.org; Wed, 01 Apr 2020 22:55:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJmGP-0007gx-Af for pgsql-general@arkaria.postgresql.org; Wed, 01 Apr 2020 22:55:13 +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 1jJmGO-0007gh-TK for pgsql-general@lists.postgresql.org; Wed, 01 Apr 2020 22:55:13 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jJmGM-000141-Cu for pgsql-general@postgresql.org; Wed, 01 Apr 2020 22:55:11 +0000 Received: by mail-qk1-x741.google.com with SMTP id j4so1955318qkc.11 for ; Wed, 01 Apr 2020 15:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=kudlXkADwzHSfSGJvmA8yo5oLwb8WzA9YMX+IE36Dr0=; b=upXut9Ne94UNlsoUCzChwm8SRDGa6di5EPgssWHWUJu5KoCEBQtl/WrnjUqbrgy6cN voXl8ZQa7ezL4JYwO2SeyK6Oem2JN8PF6b5l+mpFc1pvJlFpGjxDUBsWHOYTh0FApsv3 qbAAXc1vhmD8eFRpN7e+XKsbcs32suzoCZpeK1TwVAIhwFgAubrUdiF1ATDg+fYC+ohb LzfKuGTAof9IElsPanfq67ljN7QhEh3h4PEgSq1YbgfnlABjlChXWmGgd8HNgtplr0EF cGyPgYecaIaB66WSSGCg3ncQXJ4Kuuc/tY6Ir72Olx77fOneNnCxRwmPNhoXY/1Xp0yZ Fq7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=kudlXkADwzHSfSGJvmA8yo5oLwb8WzA9YMX+IE36Dr0=; b=ctJ0If/oAID2DXic6Vk3f4S6B9lChJMa3BbFPxrv/H7QAOntfxxa+S0qxX7BAL4Rsa 7Dfx5nSKq3lRb7HBBIket0Cna6rLJzLrBcfu+r2U0NJZwZdMw/u7gTLsfYtykova/xxe EK6ZnA8a2K8Psfh71mJ2rBye+h6CKyCQuB90H+IwocSyGZG8M5taJa7XuQZeeglOO3A5 b419RGPrm/onWxkxE4Jg6ZzdPBluddjRElh3u08wLj9ZdFqh7X7Nq/bz5aS0esDix7YS Jd5p2TDMas1uJin4hKkGutseuUx5M+2FAQ7Qng89e8VwPmIhVfmTcv0r81ThYgKGzrw+ UG4A== X-Gm-Message-State: AGi0PuYR3ASE58s3jF5vTPDZtdQt88H3PHm3DYn3lWlrnLxvfV6iRspl qFvXcVPiBPeQZ/8e3ackX96ltw== X-Google-Smtp-Source: APiQypIB/ksvUGdZqBIpmBuY/YDrgL6AlTTV3IDjXN01TtiSaadYhDpIVC3tmXB94HeE5U6kpDtmPg== X-Received: by 2002:a05:620a:1e:: with SMTP id j30mr646846qki.311.1585781709395; Wed, 01 Apr 2020 15:55:09 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id l42sm2557360qtf.51.2020.04.01.15.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 15:55:08 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id E1EB8300A9D; Wed, 1 Apr 2020 19:55:05 -0300 (-03) Date: Wed, 1 Apr 2020 19:55:05 -0300 From: Alvaro Herrera To: Abdul Sayeed Cc: Edson Richter , pgsql-general Subject: Re: It is possible to force periodically switch xlog? Message-ID: <20200401225505.GA4807@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services