Re: pg_background (and more parallelism infrastructure patches) - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pg_background (and more parallelism infrastructure patches)
Date
Msg-id 20140725201625.GA5476@eldon.alvh.no-ip.org
Whole thread Raw
Responses Re: pg_background (and more parallelism infrastructure patches)  (Robert Haas <robertmhaas@gmail.com>)
List 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



pgsql-hackers by date:

Previous
From: Claudio Freire
Date:
Subject: Re: Proposal: Incremental Backup
Next
From: Robert Haas
Date:
Subject: pg_background (and more parallelism infrastructure patches)