Re: pg_background (and more parallelism infrastructure patches)

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_background (and more parallelism infrastructure patches)
Date: 2014-07-25 20:16:25
Message-ID: 20140725201625.GA5476@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jul 25, 2014 at 02:11:32PM -0400, Robert Haas wrote:

> + pq_mq_busy = true;
> +
> + iov[0].data = &msgtype;
> + iov[0].len = 1;
> + iov[1].data = s;
> + iov[1].len = len;
> +
> + Assert(pq_mq_handle != NULL);
> + result = shm_mq_sendv(pq_mq_handle, iov, 2, false);
> +
> + pq_mq_busy = false;

Don't you need a PG_TRY block here to reset pq_mq_busy?

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Baker, Keith [OCDUS Non-J&J] 2014-07-25 20:16:57 Proposal to add a QNX 6.5 port to PostgreSQL
Previous Message Lars Ewald (web.de) 2014-07-25 19:59:56 Re: Fwd: Re: Compile fails on AIX 6.1