Simplify the logic a bit (src/bin/scripts/reindexdb.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Simplify the logic a bit (src/bin/scripts/reindexdb.c)
Date: 2025-02-13 14:28:20
Message-ID: CAEudQArfqr0-s0VVPSEh=0kgOgBJvFNdGW=xSL5rBcr0WDMQYQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

Coverity complained about possible dereference null pointer
in *reindex_one_database* function.
That's not really true.
But the logic is unnecessarily complicated.

Let's simplify it to humans and machines.

patch attached.

Best regards,
Ranier Vilela

Attachment Content-Type Size
simplifies-reindex-one-database-reindexdb.patch application/octet-stream 865 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Melanie Plageman 2025-02-13 14:35:44 Re: BitmapHeapScan streaming read user and prelim refactoring
Previous Message Nitin Jadhav 2025-02-13 14:04:15 Re: Address the bug in 041_checkpoint_at_promote.pl