Replace static buf with palloc in str_time()

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 6151cb7876136ad23748f4f724309166bbfad3e0
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-07-30T19:05:51Z
Releases: 18.0
Replace static buf with palloc in str_time()

The function is used only once in the startup process, so the leak
into current memory context is harmless.

This is a tiny step in making the server thread-safe.

Reviewed-by: Robert Haas
Discussion: https://www.postgresql.org/message-id/7f86e06a-98c5-4ce3-8ec9-3885c8de0358@iki.fi

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +2 −2

Discussion