Re: Data race in interfaces/libpq/fe-exec.c

2020-01-31 Thread Mark Charsley
According to folks significantly cleverer than me, this can be a problem: See section 2.4 in https://www.usenix.org/legacy/events/hotpar11/tech/final_files/Boehm.pdf tl;dr in a self-fulfilling prophecy kind of way, there are no benign data-races. So the compiler can assume no-one would write a dat

Re: Data race in interfaces/libpq/fe-exec.c

2020-01-30 Thread Tom Lane
Mark Charsley writes: > This line > https://github.com/postgres/postgres/blob/30012a04a6c8127397a8ab71e160d9c7e7fbe874/src/interfaces/libpq/fe-exec.c#L1073 > triggers data race errors when run under ThreadSanitizer (*) > As far as I can tell, the static variable in question is a hack to allow a >