| From: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
|---|---|
| To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
| Cc: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Use allocation macros in the logical replication code |
| Date: | 2026-03-03 20:52:26 |
| Message-ID: | CAD21AoBx559ox16tCV3spS_7Yt=k1O_f8+qjJ0a6ywt9HAwKRQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, Feb 3, 2026 at 9:40 PM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> 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
Thank you for the patch!
The patch looks good to me. I'll push it, barring objections.
Regards,
--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2026-03-03 20:58:16 | Re: Improve hash join's handling of tuples with null join keys |
| Previous Message | Masahiko Sawada | 2026-03-03 20:48:26 | Re: Is it OK to perform logging while holding a LWLock? |