Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8VDM-0006S3-JA for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 18:20:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8VDL-0008Nw-FA for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 18:20:23 +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.89) (envelope-from ) id 1f8VDL-0008NX-7P for pgsql-general@lists.postgresql.org; Tue, 17 Apr 2018 18:20:23 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8VDE-0003Jq-Mw for pgsql-general@postgresql.org; Tue, 17 Apr 2018 18:20:19 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 7B4751009; Tue, 17 Apr 2018 14:20:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 17 Apr 2018 14:20:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5rFNNOkJmD8zEepnk AWeO+ald41SxC0IzkMbaESu+14=; b=Do5cQ0NbA94FrgqHEsh9s5skm5zuLQdMP qJsG4Is8EENAquOtijpvmSQ9DIGDUWF2aB701chCy/Ljs0wZlzMqlFbu9Im42CkZ XICuVLNtYRsQkdgUXE1XLk8jkbSP49EVL//EJwAdz2SqyY7IHZvNJ+lttYNhO0Bd r5nI7LF9VneVndJFaHrKNr8yLznj+loMsuPFBwsY7BFRM6GP76jzVqcZNIHcaeyB g8ljdYHxNgnijvV4gLqkqRGCU9crguHRqYTCfPzp3XcBkmfuAcIN7dKOWfjxIf/H cz3yo/YcIqI8dE3B4VOxHwgu4kSDipkYgvahmy23CaethKglpcNmQ== X-ME-Sender: Received: from alvin.alvh.no-ip.org (unknown [179.56.29.253]) by mail.messagingengine.com (Postfix) with ESMTPA id A0EF110264; Tue, 17 Apr 2018 14:20:14 -0400 (EDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 632525CF; Tue, 17 Apr 2018 15:20:13 -0300 (-03) Date: Tue, 17 Apr 2018 15:20:13 -0300 From: Alvaro Herrera To: David Pacheco Cc: pgsql-general@postgresql.org Subject: Re: Can PostgreSQL create new WAL files instead of reusing old ones? Message-ID: <20180417182013.zi3wghrvyspiatkh@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: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Pacheco wrote: > tl;dr: We've found that under many conditions, PostgreSQL's re-use of old > WAL > files appears to significantly degrade query latency on ZFS. The reason is > complicated and I have details below. Has it been considered to make this > behavior tunable, to cause PostgreSQL to always create new WAL files > instead of re-using old ones? I don't think this has ever been proposed, because there was no use case for it. Maybe you want to work on a patch for it? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services