pgsql: Replace static buf with palloc in str_time() - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Replace static buf with palloc in str_time()
Date
Msg-id E1sYsSm-001vm5-0f@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6151cb7876136ad23748f4f724309166bbfad3e0

Modified Files
--------------
src/backend/access/transam/xlog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Remove leftover function declaration
Next
From: Jeff Davis
Date:
Subject: pgsql: Relax check for return value from second call of pg_strnxfrm().