From: Andres Freund <andres@anarazel.de>
To: olivier.gosseaume@free.fr
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13484: Performance problem with logical decoding
Date: Mon, 6 Jul 2015 23:05:27 +0200
Message-ID: <20150706210527.GE340@alap3.anarazel.de> (raw)
In-Reply-To: <1369864456.17076590.1436216182048.JavaMail.root@zimbra72-e12.priv.proxad.net>
References: <20150706204138.GC340@alap3.anarazel.de>
<1369864456.17076590.1436216182048.JavaMail.root@zimbra72-e12.priv.proxad.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2015-07-06 22:56:22 +0200, olivier.gosseaume@free.fr wrote:
> >Are you stopping pg_recvlogical between the runs, or are you letting it
> >run? The point of using it is that it's a streaming, i.e. that you do
> >not need to pay to "startup" costs of logical decoding, which can be
> >noticeable.
>
> No, I just let it run. In my case the bottleneck seems to be on server
> side when spilling to disk. I can see the server build the files but
> very slowly.
That's odd. It's really just a plain series of writes. I wonder if for
some reason windows disables write buffering or such?
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...
> >> What is observe is that the spilling occurs, and
> >> when the .snap file is created then pg_recvlogical will consume data
> >> but it does take a long time exactly the same time as
> >> pg_logical_slot_get_changes in fact.
> >
> >Another possibility is that there's some windows specific problem here.
>
> I do agree. It must be a Windows issue then. I reproduced it on two
> differents dev machines both with SSD and Windows 7. I can make a try
> on a real Windows 2008 or 2012 server with SAN access just to
> check. Will do it tomorrow
Any chance you could cross check on a unixoid OS? Just to rule out it's
not some configuration/setup/? issue?
Regards,
Andres
--
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: andres@anarazel.de, olivier.gosseaume@free.fr
Subject: Re: BUG #13484: Performance problem with logical decoding
In-Reply-To: <20150706210527.GE340@alap3.anarazel.de>
References: <20150706204138.GC340@alap3.anarazel.de> <1369864456.17076590.1436216182048.JavaMail.root@zimbra72-e12.priv.proxad.net> <20150706210527.GE340@alap3.anarazel.de>
* 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