pgsql: formatting.c cleanup: Change TmFromChar.clock field to bool

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: formatting.c cleanup: Change TmFromChar.clock field to bool
Date: 2025-10-31 07:14:56
Message-ID: E1vEjLc-004MOV-2j@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

formatting.c cleanup: Change TmFromChar.clock field to bool

This makes the purpose clearer and avoids having two extra symbols,
one of which (CLOCK_24_HOUR) was unused.

Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/6dd9d208-a3ed-49b5-b03d-8617261da973%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ce5f6817e4d572300f303a797f4f42820ead0044

Modified Files
--------------
src/backend/utils/adt/formatting.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2025-10-31 09:01:20 pgsql: formatting.c cleanup: Change fill_str() return type to void
Previous Message Michael Paquier 2025-10-31 02:26:17 pgsql: Add test tracking WAL receiver shutdown for primary_conninfo upd