a couple of small cleanup patches for DSM-related code

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: a couple of small cleanup patches for DSM-related code
Date: 2025-06-04 19:48:14
Message-ID: aECi_gSD9JnVWQ8T@nathan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

0001 changes test_dsm_registry.c to use PG_GETARG_INT32 and
PG_RETURN_INT32. The installation script and the C code both used signed
integers, so I'm not sure why I used PG_GETARG/RETURN_UINT32 in commit
8b2bcf3. I'm planning to back-patch this one to v17, where the DSM
registry was first introduced.

0002 follows commit 5fe08c0's example and changes some calls to
dshash_attach() and dsa_create_in_place() to use NULL instead of 0 for
pointer arguments. I don't see any need to back-patch this one, but I also
don't see any need to wait for v19devel to commit it.

Any objections?

--
nathan

Attachment Content-Type Size
v1-0001-fix-sign-mismatches-in-test_dsm_registry.patch text/plain 1.1 KB
v1-0002-use-NULL-instead-of-0-for-pointer-arguments.patch text/plain 1.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-06-04 20:02:32 Re: Non-reproducible AIO failure
Previous Message David E. Wheeler 2025-06-04 19:48:05 Re: ABI Compliance Checker GSoC Project