| From: | Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com> |
|---|---|
| To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
| Cc: | Pierre Forstmann <pierre(dot)forstmann(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Reduce logging during prepared transaction recovery |
| Date: | 2026-10-29 05:30:00 |
| Message-ID: | CAE9k0PnQ6pxKukmg2euq2qkzBFFqMD2dkpdfoVpEoPPouun7iA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
Thanks for your review comments/suggestions.
On Wed, Oct 28, 2026 at 5:15 PM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
> On Wed, Oct 28, 2026 at 7:15 PM Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com> wrote:
> > Thanks for the review and suggestions. I agree that we can verify
> > these changes by adding log checks to the existing TAP test for
> > two-phase transactions. I’ve done that in the attached patch, which is
> > based on the changes suggested in your earlier patch. Please take a
> > look and let me know if you have any other comments.
>
> Thanks for updating the patch!
>
> - ereport(LOG,
> + ereport(DEBUG1,
>
> Do we want to keep this debug message translatable? If not, we could
> simplify this to elog().
>
> Also, DEBUG2 might be more consistent with per-transaction messages
> in PrepareRedoAdd() and PrepareRedoRemoveFull()? Those use elog(DEBUG2, ...).
> This would also avoid flooding the log at DEBUG1.
>
It's a developer-facing message, so I agree that it doesn't need to be
translatable. I've changed it to elog(DEBUG2, ...) in the attached
patch, consistent with PrepareRedoAdd() and PrepareRedoRemoveFull().
--
With Regards,
Ashutosh Sharma.
| Attachment | Content-Type | Size |
|---|---|---|
| v3-0001-Reduce-logging-during-prepared-transaction-recovery.patch | application/octet-stream | 4.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ajin Cherian | 2026-10-29 05:41:53 | Re: [PATCH] Preserve replication origin OIDs in pg_upgrade |
| Previous Message | Takeshi Ideriha | 2026-10-29 05:28:58 | Re: [PATCH] pgcrypto: Fix sha-crypt rounds= values that do not fit in int (BUG #19743) |