Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwZ4W-00014M-9g for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Oct 2016 18:25:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwZ4V-0008K3-SX for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Oct 2016 18:25:07 +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_2) (envelope-from ) id 1bwZ4U-0008Hx-OR for pgsql-bugs@postgresql.org; Tue, 18 Oct 2016 18:25:06 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwZ4R-0007Va-LD for pgsql-bugs@postgresql.org; Tue, 18 Oct 2016 18:25:06 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u9IIOuv27194 for ; Tue, 18 Oct 2016 11:24:56 -0700 Subject: Re: BUG #14378: when drop schema, standby will do many more than primary, and very slow, it's a bug? To: pgsql-bugs@postgresql.org References: <20161018075733.1413.84748@wrigleys.postgresql.org> From: John R Pierce Message-ID: Date: Tue, 18 Oct 2016 11:25:01 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161018075733.1413.84748@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.2 (--) 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 10/18/2016 12:57 AM, digoal@126.com wrote: > 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? your table has 100 associated sequences, and 100 associated indexes, along with 100 expression constraints?, and you're creating 500 of these? thats quite a lot of metadata. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs