Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCDHR-0000XI-DX for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 20:46:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZCDHQ-0006t2-Ta for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 20:46:20 +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 1ZCDGR-0005sR-BE for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 20:45:19 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZCDGI-0008Ae-DK for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 20:45:18 +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 7EB00860002; Mon, 6 Jul 2015 22:45:09 +0200 (CEST) Date: Mon, 6 Jul 2015 22:45:09 +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: <20150706204509.GD340@alap3.anarazel.de> References: <1218457515.16345590.1436203770840.JavaMail.root@zimbra72-e12.priv.proxad.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1218457515.16345590.1436203770840.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 19:29:30 +0200, olivier.gosseaume@free.fr wrote: > To be more concise : > - ONE transaction with 4095 operations -> consumed in 80mS > - TEN transactions with 4095 operations each (so 40950 operations) -> 380mS (which as you said is very good -less than linear growth-) > - ONE transaction with 4096 operations -> consumed in 4204mS (ouch ...). I confirm there are only 4096 changes in one transaction > - TEN transactions with 4095 operations each (so 40950 operations) -> 34998mS, ouch again Given the third result it's unlikely, but just to make sure: Are you sure network issues aren't a factor here? 40950 changes are about 3.8MB, over a slow network that can take a second. Additionally psql will display all the changes in a pager, which'll not be fast either (but shouldn't be included in \timing's output). 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