pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: David Fetter <david@fetter.org>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Finer grain log timestamps
Date: Mon, 09 May 2022 11:21:26 +0100
Message-ID: <875ymfnh09.fsf@wibble.ilmari.org> (raw)
In-Reply-To: <20220508220222.GD11333@fetter.org>
References: <20220508204451.GC11333@fetter.org>
	<20220508211227.GP28830@telsasoft.com>
	<20220508220222.GD11333@fetter.org>

David Fetter <david@fetter.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





view thread (12+ messages)  latest in thread

Message-ID: <875ymfnh09.fsf@wibble.ilmari.org>
Permalink:  ../875ymfnh09.fsf@wibble.ilmari.org/
Also on:    postgresql.org/message-id/875ymfnh09.fsf@wibble.ilmari.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: ilmari@ilmari.org, david@fetter.org, pryzby@telsasoft.com
  Subject: Re: Finer grain log timestamps
  In-Reply-To: <875ymfnh09.fsf@wibble.ilmari.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox