Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdUOU-0001VD-CC for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Feb 2017 04:07:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cdUOT-0005VP-PR for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Feb 2017 04:07:09 +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 1cdUJB-0003Gt-9R for pgsql-bugs@postgresql.org; Tue, 14 Feb 2017 04:01:41 +0000 Received: from smtp74.iad3a.emailsrvr.com ([173.203.187.74]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cdUJ6-0002do-UV for pgsql-bugs@postgresql.org; Tue, 14 Feb 2017 04:01:40 +0000 Received: from smtp2.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp2.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 2113A59BA; Mon, 13 Feb 2017 23:01:28 -0500 (EST) X-Auth-ID: blake@rcmail.com Received: by smtp2.relay.iad3a.emailsrvr.com (Authenticated sender: blake-AT-rcmail.com) with ESMTPSA id 763D45A3B; Mon, 13 Feb 2017 23:01:27 -0500 (EST) X-Sender-Id: blake@rcmail.com Received: from [10.0.1.10] ([UNAVAILABLE]. [66.176.75.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:587 (trex/5.7.12); Mon, 13 Feb 2017 23:01:28 -0500 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: BUG #14231: logical replication wal sender process spins when using error traps in function From: Michael Day In-Reply-To: Date: Mon, 13 Feb 2017 23:01:26 -0500 Cc: Andres Freund , Peter Geoghegan , Alvaro Herrera , pgsql-bugs@postgresql.org, Andrew Gierth Content-Transfer-Encoding: quoted-printable Message-Id: References: <878txea5b4.fsf@news-spur.riddles.org.uk> <20160706212600.GA649263@alvherre.pgsql> <8ec28b02-6ae5-369c-ec33-a7f59172c935@2ndquadrant.com> <20160719052751.5arxjvgkr34q6iff@alap3.anarazel.de> <613a6533-1f20-d8eb-c852-414fd159c758@2ndquadrant.com> To: Tomas Vondra X-Mailer: Apple Mail (2.2104) X-Pg-Spam-Score: -1.9 (-) 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 Sorry to pester, but I=92m not sure how bugs like this are tracked over lon= ger periods of time. The discussion around possible fixes for this went ab= ove my pay grade, and I=92m wondering whether a fix was ever released. If n= ot, is there any way for me to know when it does get fixed other than revie= wing release notes?=20=20 > On Jul 19, 2016, at 9:18 PM, Tomas Vondra = wrote: >=20 > On 07/19/2016 06:22 PM, Tomas Vondra wrote: >>=20 >> 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. >=20 > 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 co= de and especially docs explaining the main ideas. It's far from perfect but= much better than the previous two versions. >=20 > And it actually performs even better than the previous versions (about 2x= faster on the 50k case). >=20 > regards >=20 > --=20 > Tomas Vondra http://www.2ndQuadrant.com > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services > --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs