Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCDrd-0002i7-GQ for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 21:23:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZCDrb-000495-R4 for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 21:23:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZCDpS-0001mB-68 for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 21:21:30 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZCDpP-0000fk-NT for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 21:21:28 +0000 Received: from intern.anarazel.de (p5DDC66D4.dip0.t-ipconnect.de [93.220.102.212]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id CDDC3860003; Mon, 6 Jul 2015 23:21:26 +0200 (CEST) Date: Mon, 6 Jul 2015 23:21:26 +0200 From: Andres Freund To: olivier.gosseaume@free.fr Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13484: Performance problem with logical decoding Message-ID: <20150706212126.GF340@alap3.anarazel.de> References: <20150706204138.GC340@alap3.anarazel.de> <1369864456.17076590.1436216182048.JavaMail.root@zimbra72-e12.priv.proxad.net> <20150706210527.GE340@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150706210527.GE340@alap3.anarazel.de> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2015-07-06 23:05:27 +0200, Andres Freund wrote: > Ugh, I have a theory. I guess you can't easily recompile postgres with a > patch and test again? I don't have access to windows... So the problem I'm seing is that there's a typo/bug in ReorderBufferSerializeTXN(). It closes the filehandle after each individual spilled file instead of keeping it open for up to 16MB of WAL. On linux that doesn't hurt particularly much, the file isn't flushed to disk. Which presumably is why we haven't noticed. But if windows does that differently... Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs