pgsql: Avoid non-constant format string argument to fprintf().

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Avoid non-constant format string argument to fprintf().
Дата
Msg-id E1k7yp5-0007cz-MG@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Avoid non-constant format string argument to fprintf().

As Tom Lane pointed out, it could defeat the compiler's printf() format
string verification.

Backpatch to v12, like that patch that introduced it.

Discussion: https://www.postgresql.org/message-id/1069283.1597672779%40sss.pgh.pa.us

Branch
------
REL_12_STABLE

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

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 2 +-
src/bin/pg_checksums/pg_checksums.c   | 2 +-
src/bin/pg_rewind/pg_rewind.c         | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: snapshot scalability: cache snapshots using a xact completion co
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Fix race condition in snapshot caching when 2PC is used.