Remove --disable-thread-safety and related code.
authorThomas Munro <tmunro@postgresql.org>
Tue, 11 Jul 2023 18:20:37 +0000 (06:20 +1200)
committerThomas Munro <tmunro@postgresql.org>
Tue, 11 Jul 2023 20:20:43 +0000 (08:20 +1200)
commit68a4b58eca032916e2aad78d63f717dcb147e906
treed944d9ffb794df9d70c6408475f20d20a0580080
parent11f36694091c97318e5a2bd28b35ffe9aa1c3b6a
Remove --disable-thread-safety and related code.

All supported computers have either POSIX or Windows threads, and we no
longer have any automated testing of --disable-thread-safety.  We define
a vestigial ENABLE_THREAD_SAFETY macro to 1 in ecpg_config.h in case it
is useful, but we no longer test it anywhere in PostgreSQL code, and
associated dead code paths are removed.

The Meson and perl-based Windows build scripts never had an equivalent
build option.

Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/CA%2BhUKGLtmexrpMtxBRLCVePqV_dtWG-ZsEbyPrYc%2BNBB2TkNsw%40mail.gmail.com
38 files changed:
configure
configure.ac
doc/src/sgml/installation.sgml
meson.build
src/Makefile.global.in
src/bin/pgbench/pgbench.c
src/include/pg_config.h.in
src/interfaces/ecpg/ecpglib/connect.c
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/ecpglib_extern.h
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/memory.c
src/interfaces/ecpg/ecpglib/misc.c
src/interfaces/ecpg/include/ecpg-pthread-win32.h
src/interfaces/ecpg/include/ecpg_config.h.in
src/interfaces/ecpg/include/ecpglib.h
src/interfaces/ecpg/include/meson.build
src/interfaces/ecpg/test/expected/thread-alloc.c
src/interfaces/ecpg/test/expected/thread-descriptor.c
src/interfaces/ecpg/test/expected/thread-prep.c
src/interfaces/ecpg/test/expected/thread-thread.c
src/interfaces/ecpg/test/expected/thread-thread_implicit.c
src/interfaces/ecpg/test/thread/alloc.pgc
src/interfaces/ecpg/test/thread/descriptor.pgc
src/interfaces/ecpg/test/thread/prep.pgc
src/interfaces/ecpg/test/thread/thread.pgc
src/interfaces/ecpg/test/thread/thread_implicit.pgc
src/interfaces/libpq/Makefile
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/fe-secure-openssl.c
src/interfaces/libpq/fe-secure.c
src/interfaces/libpq/legacy-pqsignal.c
src/interfaces/libpq/libpq-int.h
src/makefiles/meson.build
src/tools/msvc/Solution.pm
src/tools/msvc/ecpg_regression.proj