Re: removing set_latch_on_sigusr1 - Mailing list pgsql-hackers

From Haribabu Kommi
Subject Re: removing set_latch_on_sigusr1
Date
Msg-id CAJrrPGfXYz8NOcBaLEwsvvq8A4kowX=UkmzSMrcioZ6JtdWufw@mail.gmail.com
Whole thread Raw
In response to removing set_latch_on_sigusr1  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Fri, Oct 9, 2015 at 2:41 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>
> As it happens, the TupleQueueFunnelNext function I recently committed
> has such a hazard, which I failed to spot during review and testing.
> If people don't like this, I can instead cause that function to set
> the flag.  But every place that sets the flag has to use a
> PG_TRY()/PG_CATCH() block to make sure the old value of the flag gets
> restored.  I'm pretty sure that's going to burn more cycles than the
> flag can ever hope to save, not to mention the risk of bugs due to
> people forgetting to add necessary volatile qualifiers.  We've already
> got four PG_TRY() blocks in the code to cater to this stupid flag, and
> if we keep it around I'm sure we'll accumulate at least a few more.
>
> Patch attached.  Objections?  Suggestions?  Comments?

Once I also faced a problem with set_latch_on_sigusr1 flag in our development.

+1 for removal.

Regards,
Hari Babu
Fujitsu Australia



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Re: In-core regression tests for replication, cascading, archiving, PITR, etc.
Next
From: Peter Geoghegan
Date:
Subject: Re: More work on SortSupport for text - strcoll() and strxfrm() caching