Re: [PATCH] Fix incorrect fprintf usage in log_error FRONTEND path
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bryan Green <dbryan.green@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2025-10-13T15:48:59Z
Lists: pgsql-hackers
Bryan Green <dbryan.green@gmail.com> writes: > I noticed that the log_error() utility function has a bug in its FRONTEND > code path. The function uses fprintf() with a va_list argument, but > fprintf() expects individual arguments. This should > be vfprintf() instead. Huh, that certainly appears broken, but isn't the non-FRONTEND case equally broken? write_stderr() doesn't expect a va_list either. I wonder if this code is ever reached at all. regards, tom lane
Commits
-
Fix incorrect message-printing in win32security.c.
- f91666c836dd 15.15 landed
- e91eb4ad66c9 14.20 landed
- b48ae226e6c3 18.1 landed
- 9883e3cd1c61 16.11 landed
- 75a555d61b3b 13.23 landed
- 4c53519e15da 17.7 landed
- 03bf7a12c5a4 19 (unreleased) landed