pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Replace pointer comparisons and assignments to literal zero with
Date: Tue, 02 Dec 2025 07:44:16 +0000
Message-ID: <E1vQL3Y-002Obj-0k@gemulon.postgresql.org> (raw)

Replace pointer comparisons and assignments to literal zero with NULL

While 0 is technically correct, NULL is the semantically appropriate
choice for pointers.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/aS1AYnZmuRZ8g%2B5G%40ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

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

Modified Files
--------------
src/backend/nodes/copyfuncs.c         | 2 +-
src/backend/postmaster/postmaster.c   | 2 +-
src/backend/utils/adt/pg_locale.c     | 4 ++--
src/backend/utils/adt/timestamp.c     | 2 +-
src/interfaces/ecpg/ecpglib/prepare.c | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)



Message-ID: <E1vQL3Y-002Obj-0k@gemulon.postgresql.org>
Permalink:  ../E1vQL3Y-002Obj-0k@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQL3Y-002Obj-0k@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Replace pointer comparisons and assignments to literal zero with
  In-Reply-To: <E1vQL3Y-002Obj-0k@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox