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

From Yugo Nagata
Subject Re: [HACKERS] A little improvementof ApplyLauncherMain loop code
Date
Msg-id 20170822125125.877b684d.nagata@sraoss.co.jp
Whole thread Raw
In response to Re: [HACKERS] A little improvementof ApplyLauncherMain loop code  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
On Tue, 15 Aug 2017 15:17:06 -0400
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:

> 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!

Thanks, too!

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


-- 
Yugo Nagata <nagata@sraoss.co.jp>



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] pgbench: Skipping the creating primary keys after initialization
Next
From: Yugo Nagata
Date:
Subject: Re: [HACKERS] A suspicious code in pgoutput_startup().