Encapsulate io_uring process count calculation

From: Japin Li <japinli(at)hotmail(dot)com>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Encapsulate io_uring process count calculation
Date: 2025-06-03 04:16:21
Message-ID: ME0P300MB044521067A1EDDA9EDEC3793B66DA@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I've replaced the hardcoded arithmetic expression for calculating TotalProcs
within the pgaio_uring_shmem_init() with a call to the dedicated
pgaio_uring_procs() function.

This can make the code's intent clearer. Simplifies future modifications
to the calculation, as it only needs to be updated in one place.

--
Regards,
Japin Li

Attachment Content-Type Size
v1-0001-Encapsulate-io_uring-process-count-calculation.patch text/x-diff 963 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2025-06-03 04:24:10 Re: bt_index_parent_check and concurrently build indexes
Previous Message Amul Sul 2025-06-03 04:14:18 Re: Foreign key validation failure in 18beta1