Re: ECPG Refactor: move sqlca variable in ecpg_log() - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: ECPG Refactor: move sqlca variable in ecpg_log()
Date
Msg-id 202410101613.dvquuowwuceh@alvherre.pgsql
Whole thread Raw
List pgsql-hackers
On 2024-Oct-10, Yuto Sasaki (Fujitsu) wrote:

> The sqlca variable in the ecpg_log() was declared with an unnecessarily wide
> scope, so I moved to the appropriate place.

Hmm, I'm not sure we want that, because if we do this, then
ECPGget_sqlca() gets run with the debug_mutex held.  In the original
coding, it's run without the mutex.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
Voy a acabar con todos los humanos / con los humanos yo acabaré
voy a acabar con todos (bis) / con todos los humanos acabaré ¡acabaré! (Bender)



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Converting tab-complete.c's else-if chain to a switch
Next
From: Alvaro Herrera
Date:
Subject: Re: overflow bug for inhcounts