Re: [HACKERS] A little improvementof ApplyLauncherMain loop code - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] A little improvementof ApplyLauncherMain loop code
Date
Msg-id c659720e-18bc-2fc4-4b18-4b36f2ed7dd5@2ndquadrant.com
Whole thread Raw
In response to [HACKERS] A little improvementof ApplyLauncherMain loop code  (Yugo Nagata <nagata@sraoss.co.jp>)
Responses Re: [HACKERS] A little improvementof ApplyLauncherMain loop code  (Yugo Nagata <nagata@sraoss.co.jp>)
List pgsql-hackers
On 8/1/17 02:28, Yugo Nagata wrote:
> When reading the logical replication code, I found that the following
> part could be improved a bit. In the foreach, LWLockAcquire and
> logicalrep_worker_find are called for each loop, but they are needed
> only when sub->enabled is true.

Fixed, thanks!

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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] [COMMITTERS] pgsql: Simplify plpgsql's check for simple expressions.
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Logical replication message type 'Y' is missing in docs