Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCDa6-0001iZ-3f for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 21:05:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZCDa5-0003jg-Ig for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 21:05:37 +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.84) (envelope-from ) id 1ZCDa4-0003jZ-GY for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 21:05:36 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZCDZx-00005N-KD for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 21:05:35 +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 4DB9A860002; Mon, 6 Jul 2015 23:05:28 +0200 (CEST) Date: Mon, 6 Jul 2015 23:05:27 +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: <20150706210527.GE340@alap3.anarazel.de> References: <20150706204138.GC340@alap3.anarazel.de> <1369864456.17076590.1436216182048.JavaMail.root@zimbra72-e12.priv.proxad.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1369864456.17076590.1436216182048.JavaMail.root@zimbra72-e12.priv.proxad.net> 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 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