Re: libpq and multi-threading

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: "Michael J(dot) Baars" <mjbaars1977(dot)pgsql(dot)hackers(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: libpq and multi-threading
Date: 2023-05-02 13:49:00
Message-ID: f85acc2086665f4d095537169e68f3b5b3cbcff4.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2023-05-02 at 11:38 +0200, Michael J. Baars wrote:
> I have a question about libpq and multi-threading.
>
> In the PostgreSQL documentation (https://www.postgresql.org/docs/15/libpq-threading.html)
> it says that results can be passed around freely between threads. However, when I try to read
> the result from the parent thread, the program crashes with a segmentation fault.

That's too little information.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael J. Baars 2023-05-02 15:43:06 Re: libpq and multi-threading
Previous Message Magnus Hagander 2023-05-02 10:15:53 Re: postgresql15-contrib installation on Amazon Linux 2 fails on Python shared lib dependency