pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Michael J. Baars <mjbaars1977.pgsql.hackers@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: libpq and multi-threading
Date: Tue, 02 May 2023 15:49:00 +0200
Message-ID: <f85acc2086665f4d095537169e68f3b5b3cbcff4.camel@cybertec.at> (raw)
In-Reply-To: <CAMHx2Rs2DmFpWyzqB-YSop=49VuKypoJrpstt_AvBeJS6N3odg@mail.gmail.com>
References: <CAMHx2Rs2DmFpWyzqB-YSop=49VuKypoJrpstt_AvBeJS6N3odg@mail.gmail.com>

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





view thread (11+ messages)  latest in thread

Message-ID: <f85acc2086665f4d095537169e68f3b5b3cbcff4.camel@cybertec.at>
Permalink:  ../f85acc2086665f4d095537169e68f3b5b3cbcff4.camel@cybertec.at/
Also on:    postgresql.org/message-id/f85acc2086665f4d095537169e68f3b5b3cbcff4.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, mjbaars1977.pgsql.hackers@gmail.com
  Subject: Re: libpq and multi-threading
  In-Reply-To: <f85acc2086665f4d095537169e68f3b5b3cbcff4.camel@cybertec.at>
  References: <CAMHx2Rs2DmFpWyzqB-YSop=49VuKypoJrpstt_AvBeJS6N3odg@mail.gmail.com> <f85acc2086665f4d095537169e68f3b5b3cbcff4.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox