| From: | Peter Smith <smithpb2250(at)gmail(dot)com> |
|---|---|
| To: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Use allocation macros in the logical replication code |
| Date: | 2026-02-04 05:40:12 |
| Message-ID: | CAHut+PszGpROkU7PoXsdnvBUECEC3QaMP_-eDxGxLTyYvqa3gw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Feb 4, 2026 at 1:47 PM Hayato Kuroda (Fujitsu)
<kuroda(dot)hayato(at)fujitsu(dot)com> wrote:
>
> Dear Peter,
>
> Thanks for the patch. I have one comment for the patch:
> ```
> @@ -836,8 +836,9 @@ SnapBuildAddCommittedTxn(SnapBuild *builder, TransactionId xid)
> elog(DEBUG1, "increasing space for committed transactions to %u",
> (uint32) builder->committed.xcnt_space);
>
> - builder->committed.xip = repalloc(builder->committed.xip,
> - builder->committed.xcnt_space * sizeof(TransactionId));
> + builder->committed.xip = repalloc_array(builder->committed.xip,
> + TransactionId,
> + builder->committed.xcnt_space);
> ```
>
> Number of tabs seems not to enough here. Other than that LGTM.
>
Thanks for the feedback. Now I have run pg_indent on all the patched files.
PSA v2
======
Kind Regards,
Peter Smith.
Fujitsu Australia
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-use-alloc-macros-in-logical-replication-code.patch | application/octet-stream | 6.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-02-04 05:56:39 | Re: Add expressions to pg_restore_extended_stats() |
| Previous Message | Manni Wood | 2026-02-04 05:38:27 | Re: Speed up COPY FROM text/CSV parsing using SIMD |