Re: A little improvementof ApplyLauncherMain loop code

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A little improvementof ApplyLauncherMain loop code
Date: 2017-08-15 19:17:06
Message-ID: c659720e-18bc-2fc4-4b18-4b36f2ed7dd5@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2017-08-15 19:38:31 Re: Logical replication message type 'Y' is missing in docs
Previous Message Robert Haas 2017-08-15 19:15:39 Re: [COMMITTERS] pgsql: Simplify plpgsql's check for simple expressions.