Bug in TupleQueueReaderNext() ?

From: Rushabh Lathia <rushabh(dot)lathia(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Bug in TupleQueueReaderNext() ?
Date: 2015-12-16 06:09:46
Message-ID: CAGPqQf0izEgvLgk7UBAVRRN+CcCfBZQWpcn8Ez30kPKwATqKjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi All,

TupleQueueReaderNext() always pass true for the nowait into
shm_mq_receive() call. I think here it need to pass the nowait
which is passed by the caller of TupleQueueReaderNext.

This is usefull if the caller want TupleQueueReaderNext() to wait
until it gets the tuple from the particular queue.

PFA to fix the same.

Regards,
Rushabh Lathia
www.EnterpriseDB.com

Attachment Content-Type Size
shm_mq_nowait.patch text/x-patch 551 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2015-12-16 06:15:04 Re: Disabling an index temporarily
Previous Message Fabien COELHO 2015-12-16 06:07:00 Re: extend pgbench expressions with functions