Re: Is is safe to use SPI in multiple threads?

From: Andres Freund <andres(at)anarazel(dot)de>
To: Qiu Xiafei <qiuxiafei(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is is safe to use SPI in multiple threads?
Date: 2016-12-09 22:37:58
Message-ID: 20161209223758.fkueb6bwiszmuatv@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2016-12-09 16:52:05 +0800, Qiu Xiafei wrote:
> 1. Is there a way to use SPI in multi-thread style?

No.

> 2. Another option is to use libpq, like normal clients do. Is libpq as
> efficient as SPI?

No.

- Andres

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2016-12-09 22:56:55 Re: Is is safe to use SPI in multiple threads?
Previous Message John R Pierce 2016-12-09 21:41:40 Re: Windows installation - could not connect to server: Connection refused (0x0000274D/10061)