pgsql: Remove a couple of strerror() calls - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Remove a couple of strerror() calls
Date
Msg-id E1slpVJ-0006p9-Tu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/82b07eba9e8b863cc05adb7e53a86ff02b51d888

Modified Files
--------------
src/backend/libpq/hba.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Unify some error messages to ease work of translators
Next
From: Noah Misch
Date:
Subject: pgsql: Revert "Optimize pg_visibility with read streams."