Anthonin Bonnefoy писал(а) 2026-08-19 17:15:
Hi,

It seems like this patch introduced a compilation warning[0]:

postgres_fdw.c: In function 'postgresExplainForeignScan':
postgres_fdw.c:3221:36: error: 'relname' may be used uninitialized
[-Werror=maybe-uninitialized]
 3221 |                                 if (relname == NULL ||
strcmp(refname, relname) != 0)
      |                                    ^
postgres_fdw.c:3132:45: note: 'relname' was declared here
 3132 |                                 char       *relname;
      |                                             ^~~~~~~

Setting relname to NULL during declaration fixes the warning and seems
to be the expected behavior?

[0]: https://github.com/postgres/postgres/actions/runs/32244563943/job/96042498375

Regards,
Anthonin Bonnefoy

Yes, you are correct. Sorry, missed this fix...
--
Best regards,
Alexander Pyhalov,
Postgres Professional


Reply via email to