Simplifies checks (src/bin/pg_dump/pg_backup_archiver.c)
Ranier Vilela <ranier.vf@gmail.com>
From: Ranier Vilela <ranier.vf@gmail.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2026-03-09T13:07:19Z
Lists: pgsql-hackers
Attachments
- simplifies-checks-pg_basebackup_archiver.patch (application/octet-stream) patch
Hi. Per Coverity. Coverity has some alerts about the function *RestoreArchive*, arguing that there are null variable dereferences. I haven't done in-depth research to determine if this is correct or not. However, the code can be simplified to a single check that would silence notifications and protect against this issue. patch attached. best regards, Ranier Vilela