pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
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?
Date: Tue, 18 Oct 2016 11:32:08 -0700
Message-ID: <20161018183208.l4eso7sgnw25s7zu@alap3.anarazel.de> (raw)
In-Reply-To: <20161018075733.1413.84748@wrigleys.postgresql.org>
References: <20161018075733.1413.84748@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (5+ messages)  latest in thread

Message-ID: <20161018183208.l4eso7sgnw25s7zu@alap3.anarazel.de>
Permalink:  ../20161018183208.l4eso7sgnw25s7zu@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20161018183208.l4eso7sgnw25s7zu@alap3.anarazel.de

 · 

reply

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, digoal@126.com
  Subject: Re: BUG #14378: when drop schema, standby will do many more than primary, and very slow, it's a bug?
  In-Reply-To: <20161018183208.l4eso7sgnw25s7zu@alap3.anarazel.de>
  References: <20161018075733.1413.84748@wrigleys.postgresql.org> <20161018183208.l4eso7sgnw25s7zu@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