Sergey Shinderuk writes:
> On 08.07.2023 18:11, Tom Lane wrote:
>> Having done that, it wouldn't really be necessary to mark these
>> as volatile. I kept that marking anyway for consistency with
>> send_ready_for_query, but perhaps we shouldn't?
> I don't know. Maybe marking them volatile is mor
Hello, Tom,
On 08.07.2023 18:11, Tom Lane wrote:
What we ought to be doing is resetting these two flags
after the disable_all_timeouts call.
Oops, I missed that.
Having done that, it wouldn't really be necessary to mark these
as volatile. I kept that marking anyway for consistency with
s
Sergey Shinderuk writes:
> While analyzing -Wclobbered warnings from gcc we found a true one in
> PostgresMain():
> ...
> These variables must be declared volatile, because they are read after
> longjmp(). send_ready_for_query declared there is volatile.
Yeah, you're on to something there.
> W