Re: Finer grain log timestamps

From: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
To: David Fetter <david(at)fetter(dot)org>
Cc: Justin Pryzby <pryzby(at)telsasoft(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Finer grain log timestamps
Date: 2022-05-09 10:21:26
Message-ID: 875ymfnh09.fsf@wibble.ilmari.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Fetter <david(at)fetter(dot)org> writes:

> diff --git src/backend/utils/error/elog.c src/backend/utils/error/elog.c
> index 55ee5423af..4698e32ab7 100644
> --- src/backend/utils/error/elog.c
> +++ src/backend/utils/error/elog.c
> @@ -2295,7 +2295,7 @@ char *
> get_formatted_log_time(void)
> {
> pg_time_t stamp_time;
> - char msbuf[13];
> + char msbuf[16];

Now that it holds microseconds (µs), not milliseconds (ms), should it
not be renamed to `usbuf`?

- ilmari

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2022-05-09 11:09:30 Re: An attempt to avoid locally-committed-but-not-replicated-to-standby-transactions in synchronous replication
Previous Message Dilip Kumar 2022-05-09 09:44:03 Re: An attempt to avoid locally-committed-but-not-replicated-to-standby-transactions in synchronous replication