aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsquery_gist.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2022-08-31 13:06:50 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2022-08-31 13:06:50 +0200
commitcad4323cd345ec91fbe8d118436d3d50fa53c300 (patch)
tree7cc26e31618c99a39809ace7887a1dbccedc0829 /src/backend/utils/adt/tsquery_gist.c
parent7d5852ca83f4103d806ee7501f70b9354345f65d (diff)
downloadpostgresql-cad4323cd345ec91fbe8d118436d3d50fa53c300.tar.gz
postgresql-cad4323cd345ec91fbe8d118436d3d50fa53c300.zip
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
Diffstat (limited to 'src/backend/utils/adt/tsquery_gist.c')
0 files changed, 0 insertions, 0 deletions