pgsql: Fix portability failure introduced in commits d2b0b60e7 et al.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix portability failure introduced in commits d2b0b60e7 et al.
Дата
Msg-id E1gcFpS-00082i-KD@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix portability failure introduced in commits d2b0b60e7 et al.

I made a frontend fprintf() format use %m, forgetting that that's only
safe in HEAD not the back branches; prior to 96bf88d52 and d6c55de1f,
it would work on glibc platforms but not elsewhere.  Revert to using
%s ... strerror(errno) as the code did before.

We could have left HEAD as-is, but for code consistency across branches,
I chose to apply this patch there too.

Per Coverity and a few buildfarm members.

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b8fa4c1626190142d2e98155f9df99f80fe01cef

Modified Files
--------------
src/common/psprintf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Improve tab completion of ALTER INDEX/TABLE with SETSTATISTICS
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix failure to check for open() or fsync() failures.