postgresql/src/backend/utils
Heikki Linnakangas 20e0e7da9b Add test for early backend startup errors
The new test tests the libpq fallback behavior on an early error,
which was fixed in the previous commit.

This adds an IS_INJECTION_POINT_ATTACHED() macro, to allow writing
injected test code alongside the normal source code. In principle, the
new test could've been implemented by an extra test module with a
callback that sets the FrontendProtocol global variable, but I think
it's more clear to have the test code right where the injection point
is, because it has pretty intimate knowledge of the surrounding
context it runs in.

Reviewed-by: Michael Paquier
Discussion: https://www.postgresql.org/message-id/CAOYmi%2Bnwvu21mJ4DYKUa98HdfM_KZJi7B1MhyXtnsyOO-PB6Ww%40mail.gmail.com
2024-07-26 15:12:21 +03:00
..
activity Use PqMsg_* macros in more places. 2024-07-17 10:51:00 -05:00
adt SQL/JSON: Respect OMIT QUOTES when RETURNING domains over jsonb 2024-07-26 16:08:13 +09:00
cache Remove useless initializations 2024-07-01 08:50:10 +02:00
error Move all extern declarations for GUC variables to header files 2024-07-24 06:31:07 +02:00
fmgr Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
hash Mark hash_corrupted() as pg_attribute_noreturn. 2024-03-17 17:54:45 -04:00
init Remove check hooks for GUCs that contribute to MaxBackends. 2024-07-05 14:42:55 -05:00
mb Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
misc Add test for early backend startup errors 2024-07-26 15:12:21 +03:00
mmgr Fix incorrect sentinel byte logic in GenerationRealloc() 2024-07-06 13:59:34 +12:00
resowner Remove unused typedefs 2024-05-17 07:36:12 +02:00
sort Adjust tuplestore.c not to allocate BufFiles in generation context 2024-07-06 17:40:05 +12:00
time Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Add new error code for "file name too long" 2024-07-22 09:28:01 +09:00
Gen_dummy_probes.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
Gen_fmgrtab.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
generate-errcodes.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
postprocess_dtrace.sed Update copyright for 2024 2024-01-03 20:49:05 -05:00
probes.d Update copyright for 2024 2024-01-03 20:49:05 -05:00