postgresql/src
Andres Freund 28a591711d Add helper library for use of libpq inside the server environment
Currently dblink and postgres_fdw don't process interrupts during connection
establishment. Besides preventing query cancellations etc, this can lead to
undetected deadlocks, as global barriers are not processed.

Libpqwalreceiver in contrast, processes interrupts during connection
establishment. The required code is not trivial, so duplicating it into
additional places does not seem like a good option.

These aforementioned undetected deadlocks are the reason for the spate of CI
test failures in the FreeBSD 'test_running' step.

For now the helper library is just a header, as it needs to be linked into
each extension using libpq, and it seems too small to be worth adding a
dedicated static library for.

The conversion to the helper are done in subsequent commits.

Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/20220925232237.p6uskba2dw6fnwj2@awork3.anarazel.de
2023-01-23 19:25:23 -08:00
..
backend Fix error handling in libpqrcv_connect() 2023-01-23 18:27:42 -08:00
bin Zero initialize uses of instr_time about to trigger compiler warnings 2023-01-20 21:16:47 -08:00
common Use appendStringInfoSpaces in more places 2023-01-20 13:07:24 +13:00
fe_utils Refactor code for restoring files via shell commands 2023-01-18 11:15:48 +09:00
include Add helper library for use of libpq inside the server environment 2023-01-23 19:25:23 -08:00
interfaces
makefiles
pl New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
port
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Fix error handling in libpqrcv_connect() 2023-01-23 18:27:42 -08:00
timezone
tools Fix pgindent --show-diff option. 2023-01-23 13:50:49 -05:00
tutorial
.gitignore
DEVELOPERS
Makefile
Makefile.global.in
Makefile.shlib
meson.build
nls-global.mk