From: | bt23nguyent <bt23nguyent(at)oss(dot)nttdata(dot)com> |
---|---|
To: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
Cc: | Nathan Bossart <nathandbossart(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Improve the log message output of basic_archive when basic_archive.archive_directory parameter is not set |
Date: | 2023-09-21 02:18:00 |
Message-ID: | 18cbd8ca6f5390cda2920644f891a419@oss.nttdata.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2023-09-20 21:14, Daniel Gustafsson wrote:
>> On 19 Sep 2023, at 11:21, bt23nguyent <bt23nguyent(at)oss(dot)nttdata(dot)com>
>> wrote:
>
>> Please let me know if you have any further suggestions that I can
>> improve more.
>
> + *logdetail = pstrdup("WAL archiving failed because
> basic_archive.archive_directory is not set");
>
> Nitpick: detail messages should end with a period per the error message
> style
> guide [0].
>
Yes! I totally missed this detail.
> - archiving will proceed only when it returns
> <literal>true</literal>.
> + archiving will proceed only when it returns
> <literal>true</literal>. The
> + archiver may also emit the detail explaining how the module is
> not configured
> + to the sever log if the archive module has any.
>
> I think this paragraph needs to be updated to include how the returned
> logdetail is emitted, since it currently shows the WARNING without
> mentioning
> the added detail in case returned. It would also be good to mention
> that it
> should be an allocated string which the caller can free.
>
> --
> Daniel Gustafsson
>
> [0] https://www.postgresql.org/docs/devel/error-style-guide.html
Thank you for your kind review comment!
I agree with you that this document update is not explanatory enough.
So here is an updated patch.
If there is any further suggestion, please let me know.
Best regards,
Tung Nguyen
Attachment | Content-Type | Size |
---|---|---|
v3-0001-Improve-log-message-output-of-basic-archive.patch | text/x-diff | 5.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2023-09-21 02:32:57 | Re: Bug fix in vacuumdb --buffer-usage-limit xxx -Z |
Previous Message | Kuwamura Masaki | 2023-09-21 01:53:09 | Re: bug fix and documentation improvement about vacuumdb |