postgres/src
Peter Eisentraut 890fc826c9 Use thread-safe strftime_l() instead of strftime().
This removes some setlocale() calls and a lot of commentary about how
dangerous that is.  strftime_l() is from POSIX 2008, and on Windows we
use _wcsftime_l().

While here, adjust error message for strftime_l() failure: it does not
in practice set errno (even though POSIX says it could), so no %m.

Author: Thomas Munro <thomas.munro@gmail.com>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/CA%2BhUKGJqVe0%2BPv9dvC9dSums_PXxGo9SWcxYAMBguWJUGbWz-A%40mail.gmail.com
2025-03-28 07:13:43 +01:00
..
backend Use thread-safe strftime_l() instead of strftime(). 2025-03-28 07:13:43 +01:00
bin psql: Fix incorrect equality comparison 2025-03-27 14:09:25 +01:00
common Fix integer-overflow problem in scram_SaltedPassword() 2025-03-26 17:46:51 +09:00
fe_utils pg_rewind: Add dbname to primary_conninfo when using --write-recovery-conf. 2025-03-12 16:56:04 -07:00
include Use thread-safe strftime_l() instead of strftime(). 2025-03-28 07:13:43 +01:00
interfaces libpq: Add TAP tests for service files and names 2025-03-27 16:01:38 +09:00
makefiles aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
pl Use PG_MODULE_MAGIC_EXT in our installable shared libraries. 2025-03-26 11:11:02 -04:00
port Provide thread-safe pg_localeconv_r(). 2025-03-27 10:54:28 +01:00
template
test Stablize tests added in 3abe9dc188. 2025-03-28 11:03:05 +05:30
timezone pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
tools Use streaming read I/O in heap amcheck 2025-03-27 14:04:14 -04:00
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
Makefile.shlib
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk