| From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
|---|---|
| To: | Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> |
| Cc: | Imran Zaheer <imran(dot)zhir(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Use correct type for catalog_xmin |
| Date: | 2026-06-08 05:34:43 |
| Message-ID: | CAHGQGwH56MEnJ79FSDCf9NpQ53DayL58F4qLZBchWfMBYHXL8A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Jun 5, 2026 at 8:52 PM Ashutosh Bapat
<ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> wrote:
>
> On Fri, Jun 5, 2026 at 3:33 PM Imran Zaheer <imran(dot)zhir(at)gmail(dot)com> wrote:
> >
> > Hi
> >
> > In commit 85c17f6, the variable old_catalog_xmin is using the type
> > XLogRecPtr, even though data.catalog_xmin is a TransactionId.
> >
> > Attached patch fixes this by using TransactionId instead
>
> Yes. Looks like a copy-pasto in 85c17f612af7b9c47a9828805686f0dd2433cdf1.
>
> Patch LGTM.
LGTM.
This does not seem to cause any functional issue even without the fix,
since the variable is only used for an equality check. However, the type
is clearly incorrect, so I think it's better to backpatch it through v17.
Regards,
--
Fujii Masao
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-06-08 05:45:10 | Re: Adjust pg_stat_get_lock() prorows to match lock types |
| Previous Message | Kyotaro Horiguchi | 2026-06-08 05:20:00 | Re: Adjust pg_stat_get_lock() prorows to match lock types |