Replace static buf with palloc in str_time()
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jul 2024 19:05:51 +0000 (22:05 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jul 2024 19:05:51 +0000 (22:05 +0300)
commit6151cb7876136ad23748f4f724309166bbfad3e0
tree01a66ff1d3aa8b0ce5f40f6fd7962d23e705cc46
parent5bf948d564e36553d2a1cda3244a52d054238af4
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
src/backend/access/transam/xlog.c