Re: BUG #14231: logical replication wal sender process spins when using error traps in function

From: Andres Freund <andres(at)anarazel(dot)de>
To: Peter Geoghegan <pg(at)heroku(dot)com>
Cc: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, blake(at)rcmail(dot)com, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14231: logical replication wal sender process spins when using error traps in function
Date: 2016-07-06 21:38:28
Message-ID: 20160706213828.wxyvosbnvdnlwu6i@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2016-07-06 14:23:33 -0700, Peter Geoghegan wrote:
> On Wed, Jul 6, 2016 at 2:00 PM, Andrew Gierth
> <andrew(at)tao11(dot)riddles(dot)org(dot)uk> wrote:
> > So I think this is primarily an artifact of doing so much retail
> > palloc/pfree in a single memory context.
>
> I wonder what the effect of commit
> 25c539233044c235e97fd7c9dc600fb5f08fe065, "Improve performance in
> freeing memory contexts" might be here. In other words, maybe this is
> not so bad on 9.6.

Seems unrelated. We're just doing pfrees, not MemoryContextDelete/Reset/Whatnot.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Geoghegan 2016-07-06 21:40:02 Re: BUG #14231: logical replication wal sender process spins when using error traps in function
Previous Message Andres Freund 2016-07-06 21:31:16 Re: BUG #14231: logical replication wal sender process spins when using error traps in function