Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x1bL2-005JE1-2K for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Sep 2026 03:08:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x1bL1-009qBC-26 for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Sep 2026 03:08:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x1bL1-009qAy-0c for pgsql-hackers@lists.postgresql.org; Wed, 02 Sep 2026 03:08:35 +0000 Received: from mail.postgrespro.ru ([93.174.132.70]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x1bKy-00000002TZZ-0W3J for pgsql-hackers@lists.postgresql.org; Wed, 02 Sep 2026 03:08:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1788318511; bh=3QGhtcqdvNFPBwfmpD4/+URdv2FI4kYEd/fsYrMnL1g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:From; b=IOElCBrkah3hz978V9sAckwMfVO1s9Ogfq9QiKdX5tq9C+3Jk3lZdBJfKxho4ifnb MNMVX9SXn1pGKsR7mC/GpSh4dYyqfP1aVXfnzOBfUYgh/nTfzvvUaaessLPCrzIYNB ZvXOpCs2eGjXyJPdt3/7My4vWnGS3bol1nwc02LR0FGqVJSCN46bswVOK9jF4RFLvW wFQ+MDizcp7ZP12mCULetak6hC7Hw5OB87PwZo1MMVHHIeabu49guRGT0UPHLpLJkp F9aQQwUmJIrrB8nvOGBUeDcw3SAIHdlBd7C2T2zNuJxuONx56LFMvCVcVuDofXH01k t8qrdFCD12QUQ== Received: from mail.l.postgrespro.ru (webmail-master-mstn.l.postgrespro.ru [192.168.2.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: m.polyakova@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 3DBB05FD38; Wed, 02 Sep 2026 06:08:31 +0300 (MSK) MIME-Version: 1.0 Date: Wed, 02 Sep 2026 06:08:31 +0300 From: Marina Polyakova To: Alexander Korotkov Cc: Karina Litskevich , Alexander Pyhalov , Anthonin Bonnefoy , solaimurugan vellaipandiyan , =?UTF-8?Q?=C3=81lvaro_Herrera?= , g.kashkin@postgrespro.ru, Ashutosh Bapat , PostgreSQL Hackers Subject: Re: Function scan FDW pushdown In-Reply-To: References: <202508051955.sao7ucalcce7@alvherre.pgsql> <7e2abeb3ea9bc7ca024f4e457dce33f5@postgrespro.ru> <214e7cb76a9f142a08246660a649ca0b@postgrespro.ru> <2dcab8ff39f8c6f88ecfa3cfb54d8180@postgrespro.ru> <2828ce456ded46a41cd225a1cc393526@postgrespro.ru> Message-ID: X-Sender: m.polyakova@postgrespro.ru Organization: Postgres Professional Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-KSMG-AntiPhishing: NotDetected, bases: 2026/09/02 02:14:00 X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 3.0.0.9059, bases: 2026/09/01 22:19:00 #28526328 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The attached patch fixes the warning with CFLAGS=-Og and gcc-13 described above, and removes outer_is_function/inner_is_function variables which were used only once. Thank you! On 2026-09-02 01:11, Alexander Korotkov wrote: > On Sat, Aug 29, 2026 at 10:21 PM Marina Polyakova > wrote: >> I got this warning with gcc-13 ([1], [2]) and CFLAGS=-Og (both -O0 and >> -O1 work fine). Both gcc-12 [3] and gcc-14 [4] work fine with >> CFLAGS=-Og. IMO this compiler warning is strange because the attached >> patch with a simple code reordering fixes it. >> >> [1] >> https://github.com/gcc-mirror/gcc/releases/tag/releases%2Fgcc-13.3.0 >> [2] >> https://github.com/gcc-mirror/gcc/releases/tag/releases%2Fgcc-13.4.0 >> [3] Ubuntu 12.3.0-1ubuntu1~22.04.3 12.3.0 >> [4] >> https://github.com/gcc-mirror/gcc/releases/tag/releases%2Fgcc-14.4.0 >> >> On 2026-08-28 16:18, Karina Litskevich wrote: >> > Hi! >> > >> > Here is another compilation warning that seems to be caused by this >> > patch. >> > >> > postgres_fdw.c: In function ‘foreign_join_ok’: >> > postgres_fdw.c:7135:46: error: ‘fpinfo_i’ may be used >> > uninitialized [-Werror=maybe-uninitialized] >> > 7135 | if (fpinfo_o->local_conds || fpinfo_i->local_conds) >> > | ~~~~~~~~^~~~~~~~~~~~~ >> > postgres_fdw.c:7044:28: note: ‘fpinfo_i’ was declared here >> > 7044 | PgFdwRelationInfo *fpinfo_i; >> > | ^~~~~~~~ > > Yes, compiler may fail to trace invariants of > inner_is_function/outer_is_function flags usage. I suggest to remove > them altogether. See the attached patch. I think this code also > becomes a bit more readable. > > ------ > Regards, > Alexander Korotkov > Supabase -- Best regards, Marina Polyakova Postgres Professional: http://www.postgrespro.com