Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwZBO-0001Py-DI for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Oct 2016 18:32:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwZBN-0005pe-Sp for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Oct 2016 18:32:13 +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_2) (envelope-from ) id 1bwZBN-0005pT-5B for pgsql-bugs@postgresql.org; Tue, 18 Oct 2016 18:32:13 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwZBK-0004s6-Hv for pgsql-bugs@postgresql.org; Tue, 18 Oct 2016 18:32:11 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DB957206B9; Tue, 18 Oct 2016 14:32:09 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Tue, 18 Oct 2016 14:32:09 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=PPRpEs+iAlK7lVWyq6JstAW+DRg=; b=FzIWQ a61z9Lh7+68Hxp/h4COH4kbtCoa68sePzEgskwvC9KOYe5H2Z1JtspMCmW+edK04 VtY7bUjLDFkXIGj6rwRh9LDBUbc9bE0+0LTYLFnSZll7evfcjI7f6L81tWnTjDBV y+DNMAPu5aW+10D5uEYr8EiE9tc8eRkQdwlApw= X-Sasl-enc: J7culAd+ZJCouLx8QvP+xDMBblcxROizyf1ofj2grB4N 1476815529 Received: from intern.anarazel.de (somacentral1.static.monkeybrains.net [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 919AACC0C1; Tue, 18 Oct 2016 14:32:09 -0400 (EDT) Date: Tue, 18 Oct 2016 11:32:08 -0700 From: Andres Freund To: digoal@126.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14378: when drop schema, standby will do many more than primary, and very slow, it's a bug? Message-ID: <20161018183208.l4eso7sgnw25s7zu@alap3.anarazel.de> References: <20161018075733.1413.84748@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161018075733.1413.84748@wrigleys.postgresql.org> X-Pg-Spam-Score: -2.6 (--) 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 2016-10-18 07:57:33 +0000, digoal@126.com wrote: > The following bug has been logged on the website: > > Bug reference: 14378 > Logged by: Zhou Digoal > Email address: digoal@126.com > PostgreSQL version: 9.6.0 > Operating system: CentOS 6.x x64 > Description: > > > > when i use postgresql 9.6.0 for primary-standby, i drop a schema on primary, > but it's apply very slow on standby. > > the wal send very fast, but apply very slow, i think the syscall more than > it on primary? > > this is my test: There's some O(n^2) behaviour around lock release and acquire during replay IIRC. See for example the thread around http://archives.postgresql.org/message-id/20140630231741.GA30918%40alap3.anarazel.de It's not entirely trivial to fix that though. E.g. the patch of Simon's later in that thread wouldn't help in your situation. 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