postgresql/src
Daniel Gustafsson cad4323cd3 Refactor check_ functions to use filehandle for status
When reporting failure in check_ functions there is (typically) a text-
file mentioned in the error report which contains further details. Some
check_ functions kept a separate flag variable to indicate failure, and
some just checked the state of the filehandle as it's guaranteed to be
open when the check failed. This refactors the functions to consistently
do the same check on error reporting. As the error report contains the
filepath, it makes more sense to check the filehandle state and skip the
flag variable.

Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Bruce Momjian <bruce@momjian.us>
Discussion: https://postgr.es/m/595759F6-625B-4ED7-8125-91AF00437F83@yesql.se
2022-08-31 13:06:50 +02:00
..
backend Drop replication origin slots before tablesync worker exits. 2022-08-30 08:51:41 +05:30
bin Refactor check_ functions to use filehandle for status 2022-08-31 13:06:50 +02:00
common Clean up inconsistent use of fflush(). 2022-08-29 13:55:41 -04:00
fe_utils Clean up inconsistent use of fflush(). 2022-08-29 13:55:41 -04:00
include Various cleanups of the new memory context header code 2022-08-31 07:33:54 +12:00
interfaces Cleanup more code and comments related to Windows NT4 (XP days) 2022-08-30 09:52:58 +09:00
makefiles solaris: Remove unnecessary gcc / gnu ld vs sun studio differences 2022-08-07 09:36:01 -07:00
pl plpython: Don't create pgxsdir subdirectory in installdir target 2022-08-31 07:42:01 +02:00
port Cleanup more code and comments related to Windows NT4 (XP days) 2022-08-30 09:52:58 +09:00
template On NetBSD, force dynamic symbol resolution at postmaster start. 2022-08-30 17:28:37 -04:00
test Adjust comments that called MultiXactIds "XMIDs". 2022-08-29 19:42:30 -07:00
timezone Remove fallbacks for strtoll, strtoull. 2022-08-06 09:59:51 +12:00
tools Improve performance of and reduce overheads of memory management 2022-08-29 17:15:00 +12:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Remove unused configure variable. 2022-08-18 11:22:13 -04:00
Makefile.shlib aix: Fix SHLIB_EXPORTS reference in VPATH builds 2022-08-24 20:39:46 -07:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00