git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a68159f) | patch
Remove a couple of strerror() calls
Wed, 4 Sep 2024 12:45:31 +0000 (14:45 +0200)
Wed, 4 Sep 2024 12:45:31 +0000 (14:45 +0200)
commit 82b07eba9e8b863cc05adb7e53a86ff02b51d888
Remove a couple of strerror() calls

Change to using %m in the error message string. We need to be a bit
careful here to preserve errno until we need to print it.

This change avoids the use of not-thread-safe strerror() and unifies
some error message strings, and maybe makes the code appear more
consistent.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/daa87d79-c044-46c4-8458-8d77241ed7b0%40eisentraut.org
src/backend/libpq/hba.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /