pgsql: Replace static buf with palloc in str_time()

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Replace static buf with palloc in str_time()
Date: 2024-07-30 19:24:48
Message-ID: E1sYsSm-001vm5-0f@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2024-07-30 23:51:38 pgsql: Relax check for return value from second call of pg_strnxfrm().
Previous Message Heikki Linnakangas 2024-07-30 12:20:38 pgsql: Remove leftover function declaration