Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gozQD-0000ut-LS for pgsql-admin@arkaria.postgresql.org; Wed, 30 Jan 2019 23:37:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gozQC-0004lI-7Q for pgsql-admin@arkaria.postgresql.org; Wed, 30 Jan 2019 23:37:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gozQB-0004cu-RC for pgsql-admin@lists.postgresql.org; Wed, 30 Jan 2019 23:37:31 +0000 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gozQ8-0005f8-Rf for pgsql-admin@lists.postgresql.org; Wed, 30 Jan 2019 23:37:30 +0000 Received: by mail-ot1-x343.google.com with SMTP id t5so1277625otk.1 for ; Wed, 30 Jan 2019 15:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Q+bj/GQ1942kBkWnuiJvoXcRdtcUsoJKhjZhNoEazwU=; b=Ze+Ji3JchywcmWF3B6sSNyEadw3XnRBCrXrP3sABibbXJgrtCoPNyl3bhtCnoAjoFW c5t10VcaXUus+YzWw/fzyb6TbvP01QSSYsuLxaQyXupI5a5PZM6XQfs1z3dipoXf1eIu wmDDJBfA1IVLDKfWJZ9waWkXhL1rPjZD3eRziCsDuCh7xN2fLvY6xywFFv2paq0emmvX Og4eGV3cH9rez2+tleirB73TZo+Dgq92xt//J8RoVPdjPXtsI0LXR/nBQJPmqizjrLmz yFep0l7JWFmE9aZRb2X/ujhlRm09fYVsBOe4Wiy0clbiBGtMtyST2aLccH/G3yLocVcF I1oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Q+bj/GQ1942kBkWnuiJvoXcRdtcUsoJKhjZhNoEazwU=; b=cLCC8P9tVGO05QL2/2qCdbtbyYFJK380DUxKODrpl2QW+oRDuOAwXDh5ApMb386KV+ WG35KSUlSLfCPCNvCXpeRCgbJd0jWC3Dp9vchQBA72Eazk2QaQSCwEynDSGJ9Zpq11kU zg1A+wjOPlwjtOW1dlgF5ht28cC3eDi90IzGSkPsNAkiBwrP4WU7VyMx7o08AMJEXI6D dWMlabkvvyC7jKxZnWZx+cPQgGIrk5MjSY6Kjf+44wLAbPUXXMTUeqYMMNarMBzh9jEm 7UKvyv/hhzbC9oEF4B0OTBLsoMVWF5HzyOe82D3bNX95HMVJGcfyZpY/nDLO+w+5GWpo Fzcg== X-Gm-Message-State: AJcUukcQsN92/d2XsEKcubbgGU73Pnn3SeEY1lb/kWLIShCdIdX263he zjHsWBjw+JXylftsHvk/XODeOR/2 X-Google-Smtp-Source: ALg8bN7pEgBltv7blI/OsqZ6MF+HhqGys162uyHW4iUmYXyC+bdI2wwF22fl4c4cu9Gxib2tKED+JQ== X-Received: by 2002:a9d:875:: with SMTP id 108mr22881375oty.92.1548891447885; Wed, 30 Jan 2019 15:37:27 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id h24sm1094687otq.11.2019.01.30.15.37.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 15:37:26 -0800 (PST) Subject: Re: Old WAL files under pg_xlog not getting delete To: pgsql-admin@lists.postgresql.org References: From: Ron Message-ID: Date: Wed, 30 Jan 2019 17:37:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/30/19 5:10 PM, David G. Johnston wrote: > On Wed, Jan 30, 2019 at 3:58 PM rammohan ganapavarapu > wrote: >> I am trying to understand why postgresql not removing WAL logs under pg_xlog in 9.6, below are my settings >> >> wal_keep_segments=500 >> >> pg_xlog/|wc -l >> 506 > You told PostgreSQL to keep 500 files and it has (the number kept > apparently fluctuates a little bit). > > https://www.postgresql.org/docs/11/wal-configuration.html Plus the ".", ".." and archive_status directories, and lost+found if pg_xlog is it's own partition.  That's four of the unknown six.  Add a .backup file or two and all 506 files are accounted for. -- Angular momentum makes the world go 'round.