pgsql: Tidy-up unneeded NULL parameter checks from SQL function

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Tidy-up unneeded NULL parameter checks from SQL function
Date: 2025-10-03 10:05:19
Message-ID: E1v4cf9-001FLt-0b@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tidy-up unneeded NULL parameter checks from SQL function

This function is marked as strict, so we can safely remove the checks
checking for NULL input parameters.

Author: David Rowley <dgrowleyml(at)gmail(dot)com>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Discussion: https://postgr.es/m/CAApHDvqiN0+mbooUOSCDALc=GoM8DmTbCdvwnCwak6Wb2O1ZJA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a69b55cd47274d897f4d92c466bfda461c9acfda

Modified Files
--------------
src/test/modules/test_bitmapset/test_bitmapset.c | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2025-10-03 15:15:07 pgsql: Make some use of anonymous unions [DSM registry].
Previous Message John Naylor 2025-10-03 09:19:14 pgsql: Fix reuse-after-free hazard in dead_items_reset