From: olivier.gosseaume@free.fr
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13484: Performance problem with logical decoding
Date: Mon, 6 Jul 2015 23:48:33 +0200 (CEST)
Message-ID: <1803533379.17196016.1436219313665.JavaMail.root@zimbra72-e12.priv.proxad.net> (raw)
In-Reply-To: <20150706212332.GG340@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
>> 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...
>Hrmpf, just sent the last part of this message to a different thread.
>The fix is just to change
> if (fd == -1 || XLByteInSeg(change->lsn, curOpenSegNo))
>into
> if (fd == -1 || !XLByteInSeg(change->lsn, curOpenSegNo))
>
>the bug doesn't have any correctness implications afaics, just
>performance. We read all the spilled files till the end, so even change
>spilled to the wrong segment gets picked up.
Great. I will try to rebuild on Windows with this patch and let you know
Olivier
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: olivier.gosseaume@free.fr, andres@anarazel.de
Subject: Re: BUG #13484: Performance problem with logical decoding
In-Reply-To: <1803533379.17196016.1436219313665.JavaMail.root@zimbra72-e12.priv.proxad.net>
References: <20150706212332.GG340@alap3.anarazel.de> <1803533379.17196016.1436219313665.JavaMail.root@zimbra72-e12.priv.proxad.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox