Re: What happens if tuple queue is full

From: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What happens if tuple queue is full
Date: 2016-07-06 01:06:51
Message-ID: CAJrrPGdam9RZodEYB5xowXT6UCXQ77O9ZwTCydqiW=WWs1XqGA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jul 6, 2016 at 10:57 AM, Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:
> Hi,
>
> Does anybody know what will happen if tuple queue is full, which is
> used by the parallel leader and workers? In my understanding memory
> used for the queue is a dynamic shared memory and it could be full.

The queue can gets full in the case where the leader is processing is slow
than the worker is producing tuples. In those scenarios, the worker waits
until the the queue gets empty to place the new satisfied record.The worker
gets awaken whenever the leader finishes reading the data from queue.

Regards,
Hari Babu
Fujitsu Australia

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2016-07-06 01:27:10 Fix typo in jsonb.c
Previous Message Tatsuo Ishii 2016-07-06 00:57:36 What happens if tuple queue is full