postgresql/src
Alvaro Herrera 2466d6654f
libpq-be-fe-helpers.h: wrap new cancel APIs
Commit 61461a300c introduced new functions to libpq for cancelling
queries.  This commit introduces a helper function that backend-side
libraries and extensions can use to invoke those.  This function takes a
timeout and can itself be interrupted while it is waiting for a cancel
request to be sent and processed, instead of being blocked.

This replaces the usage of the old functions in postgres_fdw and dblink.

Finally, it also adds some test coverage for the cancel support in
postgres_fdw.

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://postgr.es/m/CAGECzQT_VgOWWENUqvUV9xQmbaCyXjtRRAYO8W07oqashk_N+g@mail.gmail.com
2024-03-28 11:31:03 +01:00
..
backend Remove obsolete comment about VACUUM retrying pruning 2024-03-28 10:18:48 +02:00
bin Improve tab completion for ALTER TABLE ALTER COLUMN SET in psql. 2024-03-28 16:30:10 +09:00
common Run perltidy on generate-unicode_version.pl. 2024-03-27 13:21:29 -07:00
fe_utils Allow dbname to be written as part of connstring via pg_basebackup's -R option. 2024-03-21 10:50:33 +05:30
include libpq-be-fe-helpers.h: wrap new cancel APIs 2024-03-28 11:31:03 +01:00
interfaces Fix typo in comment 2024-03-25 14:49:17 +01:00
makefiles Remove AIX support 2024-02-28 15:17:23 +04:00
pl Activate perlcritic InputOutput::RequireCheckedSyscalls and fix resulting warnings 2024-03-19 07:09:31 +01:00
port Inline pg_popcount{32,64} into pg_popcount(). 2024-03-19 14:46:16 -05:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test Rethink create and attach APIs of shared TidStore. 2024-03-28 10:03:28 +09:00
timezone Update time zone data files to tzdata release 2024a. 2024-02-01 15:57:53 -05:00
tools Remove ObjectClass type 2024-03-26 10:08:56 +01:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Remove make function vpathsearch 2024-01-29 07:24:59 +01:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00