Re: Bug in TupleQueueReaderNext() ? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Bug in TupleQueueReaderNext() ?
Date
Msg-id CA+TgmoZefSPfcTQ4KkEEkFfevsrbOs2ksms_PqShWkcMiwYuUg@mail.gmail.com
Whole thread Raw
In response to Bug in TupleQueueReaderNext() ?  (Rushabh Lathia <rushabh.lathia@gmail.com>)
List pgsql-hackers
On Wed, Dec 16, 2015 at 1:09 AM, Rushabh Lathia
<rushabh.lathia@gmail.com> wrote:
> 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.

Boy, that's an embarassing mistake.  *blushes*

Thanks for the report and fix.  Committed.

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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Re: Reusing abbreviated keys during second pass of ordered [set] aggregates
Next
From: Tom Lane
Date:
Subject: Schedule plans for upcoming Postgres releases