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

From Tomas Vondra
Subject Re: BUG #14231: logical replication wal sender process spins when using error traps in function
Date
Msg-id c97089b5-3a3c-701f-461e-8e46c9fb4a01@2ndquadrant.com
Whole thread Raw
In response to Re: BUG #14231: logical replication wal sender process spins when using error traps in function  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: [BUGS] BUG #14231: logical replication wal sender process spins when using error traps in function
List pgsql-bugs
On 07/19/2016 06:22 PM, Tomas Vondra wrote:
>
> I don't expect to have much time to work on this in the next few weeks,
> so if anyone wants to grab this and make it a proper patch, be my guest.

Meh, who am I kidding. I've spent a bit more time hacking on this
anyway. Attached is v3, fixing various thinkos and optimizations, checks
in the code and especially docs explaining the main ideas. It's far from
perfect but much better than the previous two versions.

And it actually performs even better than the previous versions (about
2x faster on the 50k case).

regards

--
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-bugs by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: BUG #14261: Hanged randomly in hash_seq_search
Next
From: "Amaury Decreme"
Date:
Subject: Re: BUG #14261: Hanged randomly in hash_seq_search