From: | "Michael J(dot) Baars" <mjbaars1977(dot)pgsql(dot)hackers(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | libpq and multi-threading |
Date: | 2023-05-02 09:38:12 |
Message-ID: | CAMHx2Rs2DmFpWyzqB-YSop=49VuKypoJrpstt_AvBeJS6N3odg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi All,
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.
I have already tried to set the PostgreSQL 'dynamic_shared_memory_type'
configuration option to 'mmap', but this does not help.
Am I doing something wrong? How can I make libpq use mmap to allocate
memory that *can* be read from the parent thread?
Best regards,
Mischa Baars.
From | Date | Subject | |
---|---|---|---|
Next Message | sujay kadam | 2023-05-02 09:43:03 | Regarding SSL Enablement in PostgreSQL Database on different port |
Previous Message | Magnus Hagander | 2023-05-02 08:10:04 | Re: Compiling postgres for windows with src/tools/msvc.build.bat |