Re: strange parallel query behavior after OOM crashes - Mailing list pgsql-hackers

From Robert Haas
Subject Re: strange parallel query behavior after OOM crashes
Date
Msg-id CA+TgmoatmyATzF-exF4Ttg9uuRTJmKsOydLndNeE+7Byp3i9Jw@mail.gmail.com
Whole thread Raw
List pgsql-hackers
On Thu, Mar 30, 2017 at 4:35 PM, Kuntal Ghosh
<kuntalghosh.2007@gmail.com> wrote:
> 2. the server restarts automatically, initialize
> BackgroundWorkerData->parallel_register_count and
> BackgroundWorkerData->parallel_terminate_count in the shared memory.
> After that, it calls ForgetBackgroundWorker and it increments
> parallel_terminate_count.

Hmm.  So this seems like the root of the problem.  Presumably those
things need to be reset AFTER forgetting any background workers from
before the crash.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Konstantin Knizhnik
Date:
Subject: Re: Parallel query execution with SPI
Next
From: Aleksander Alekseev
Date:
Subject: Re: Multiple false-positive warnings from Valgrind