Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOh7O-0007cr-Vw for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Dec 2017 09:44:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOh7O-0008NL-Im for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Dec 2017 09:44:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eOh7O-0008NB-Ai for pgsql-bugs@lists.postgresql.org; Tue, 12 Dec 2017 09:44:54 +0000 Received: from forward5j.cmail.yandex.net ([2a02:6b8:0:1630::18]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eOh7L-0005JR-7f for pgsql-bugs@postgresql.org; Tue, 12 Dec 2017 09:44:53 +0000 Received: from mxback1g.mail.yandex.net (mxback1g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:162]) by forward5j.cmail.yandex.net (Yandex) with ESMTP id F187520FB2; Tue, 12 Dec 2017 12:44:48 +0300 (MSK) Received: from web2o.yandex.ru (web2o.yandex.ru [2a02:6b8:0:1a2d::5:102]) by mxback1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GiPQQaa2cH-imMSRh0D; Tue, 12 Dec 2017 12:44:48 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zsrv.org; s=mail; t=1513071888; bh=mGfQRnoCSUKIu4gKkEDDJiWtu0N13DXIDjtMWTiBvqo=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date; b=pLs19vHwXOpD4fC5q9uXZFIb/Ks08Akgh6ojioUmVYBpOTp7++LDle/sFkGgRsKbP ocKH6xM8jzO8FGWgTejsHYEHyDHG9/TNyrh+ydndy9xYgQ7V0lDmLqY5+Xzu7Bs+Is NLSDAA6WN6cqwp31hJHY2JdGwgAHLa/JigrJYXXw= Authentication-Results: mxback1g.mail.yandex.net; dkim=pass header.i=@zsrv.org Received: by web2o.yandex.ru with HTTP; Tue, 12 Dec 2017 12:44:48 +0300 From: Sergei Kornilov To: Raghavendra Rao J S V Cc: David G. Johnston , "pgsql-bugs@postgresql.org" In-Reply-To: References: <20171211141858.20143.74069@wrigleys.postgresql.org> <1376951513064692@web55o.yandex.ru> Subject: Re: BUG #14963: Number of wal files are keep on increasing MIME-Version: 1.0 Message-Id: <1040281513071888@web2o.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 12 Dec 2017 12:44:48 +0300 Content-Transfer-Encoding: 7bit Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Empty archive_command with archive_mode = on prohibits purge old WAL. If you will use archive_mode - you must provide correct command in archive_command (change archive_command need only reload). Documentation can be found here: https://www.postgresql.org/docs/current/static/continuous-archiving.html#BACKUP-ARCHIVING-WAL Otherwise you must disable archive_mode (need restart) or use archive_command with any command returning 0. For example archive_command = '/bin/true'. This is useful if you wish enable WAL archiving later without restart postgresql. regards, Sergei