pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Tue, 7 Jul 2015 09:55:50 +0200 (CEST)
Message-ID: <1293293691.18410087.1436255750706.JavaMail.root@zimbra72-e12.priv.proxad.net> (raw)
In-Reply-To: <1803533379.17196016.1436219313665.JavaMail.root@zimbra72-e12.priv.proxad.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi Andres

>>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

You got it :) 

I rebuilt postgres 9.4.4 x64 this morning with your patch in reorderbuffer.c and now it FLIES (140mS for a transaction with 4096 inserts, 600mS for 40960 inserts). 

Spilling to disk is now very fast as expected (not even noticeable).

Thanks for your great support.

Will this patch be included in 9.4.5 ?

PS: the build process on Windows is very simple and straightforward, congrats.

Best regards,
Olivier


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (19+ messages)  latest in thread

Message-ID: <1293293691.18410087.1436255750706.JavaMail.root@zimbra72-e12.priv.proxad.net>
Permalink:  ../1293293691.18410087.1436255750706.JavaMail.root@zimbra72-e12.priv.proxad.net/
Also on:    postgresql.org/message-id/1293293691.18410087.1436255750706.JavaMail.root@zimbra72-e12.priv.proxad.net

 · 

reply

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: <1293293691.18410087.1436255750706.JavaMail.root@zimbra72-e12.priv.proxad.net>
  References: <1803533379.17196016.1436219313665.JavaMail.root@zimbra72-e12.priv.proxad.net> <1293293691.18410087.1436255750706.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