Re: BUG #14231: logical replication wal sender process spins when using error traps in function - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #14231: logical replication wal sender process spins when using error traps in function
Date
Msg-id 20160706213828.wxyvosbnvdnlwu6i@alap3.anarazel.de
Whole thread Raw
In response to Re: BUG #14231: logical replication wal sender process spins when using error traps in function  (Peter Geoghegan <pg@heroku.com>)
List 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@tao11.riddles.org.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.

pgsql-bugs by date:

Previous
From: andres@anarazel.de (Andres Freund)
Date:
Subject: Re: BUG #14231: logical replication wal sender process spins when using error traps in function
Next
From: Peter Geoghegan
Date:
Subject: Re: BUG #14231: logical replication wal sender process spins when using error traps in function