RE: Reconnect a single connection used by multiple threads in embedded SQL in C application causes error. - Mailing list pgsql-bugs

From egashira.yusuke@fujitsu.com
Subject RE: Reconnect a single connection used by multiple threads in embedded SQL in C application causes error.
Date
Msg-id TYWPR01MB72027307B41182F8A12524ADFF039@TYWPR01MB7202.jpnprd01.prod.outlook.com
Whole thread Raw
In response to RE: Reconnect a single connection used by multiple threads in embedded SQL in C application causes error.  ("egashira.yusuke@fujitsu.com" <egashira.yusuke@fujitsu.com>)
Responses Re: Reconnect a single connection used by multiple threads in embedded SQL in C application causes error.  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
List pgsql-bugs
Hi Noah,

> > Would you like to propose a patch?
>
> Sure. I will work on creating a document patch.

I reconfirmed the conditions under which this issue occurred.
Since this happens when the current connection is disconnected by another thread in a multiple threaded application,
I added an information about "the current connection in a multiple threaded application" to explain the limitations.

I attached the patch to this mail.
I reported a version of PostgreSQL 12, but this patch is based on the master branch.

Regards,
Yusuke Egashira


Attachment

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17424: Build failed on disabled GNUC in Clang environment CFLAGS= -O2 -fgnuc-version=0
Next
From: Tom Lane
Date:
Subject: Re: BUG #17424: Build failed on disabled GNUC in Clang environment CFLAGS= -O2 -fgnuc-version=0