Re: A new function to wait for the backend exit after termination - Mailing list pgsql-hackers

From Tom Lane
Subject Re: A new function to wait for the backend exit after termination
Date
Msg-id 1686547.1606960894@sss.pgh.pa.us
Whole thread Raw
In response to RE: A new function to wait for the backend exit after termination  ("Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>)
Responses RE: A new function to wait for the backend exit after termination
List pgsql-hackers
"Hou, Zhijie" <houzj.fnst@cn.fujitsu.com> writes:
> +    ereport(WARNING,
> +            (errmsg("could not wait for the termination of the backend with PID %d within %ld milliseconds",
> +                    pid, timeout)));

> The code use %ld to print int64 type.
> How about use INT64_FORMAT, which looks more appropriate.

This is a translatable message, so INT64_FORMAT is no good -- we need
something that is the same across platforms.  The current project standard
for this problem is to use "%lld" and explicitly cast the argument to long
long int to match that.

            regards, tom lane



pgsql-hackers by date:

Previous
From: "Hou, Zhijie"
Date:
Subject: RE: A new function to wait for the backend exit after termination
Next
From: Michael Paquier
Date:
Subject: Renaming cryptohashes.c to cryptohashfuncs.c