Have BackendXidGetPid return pid_t

From: Sami Imseih <samimseih(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Have BackendXidGetPid return pid_t
Date: 2025-11-14 20:40:36
Message-ID: CAA5RZ0uitUJ7syh+=2fE6U_X9sODcpm2OkdrFVqYFhpK20VgtQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While looking at something nearby, I noticed that BackendXidGetPid()
uses an "int" for "pid", where it should be used "pid_t" like in other
places in the code including in procarray.c.

Here is a small patch to fix this.

Thanks,

--
Sami Imseih
Amazon Web Services (AWS)

Attachment Content-Type Size
0001-Change-BackendXidGetPid-return-type-to-pid_t.patch application/octet-stream 1.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-11-14 20:52:14 Re: Have BackendXidGetPid return pid_t
Previous Message Tom Lane 2025-11-14 20:25:15 Re: postgresql.conf.sample tab width