Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFZVB-0001mI-FQ for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Feb 2022 10:38:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFZV9-0004lY-IX for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Feb 2022 10:38:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFZV9-0004lO-8B for pgsql-bugs@lists.postgresql.org; Thu, 03 Feb 2022 10:38:07 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFZUz-0004QX-QO for pgsql-bugs@lists.postgresql.org; Thu, 03 Feb 2022 10:38:06 +0000 Received: from mail.postgrespro.ru (cyclops.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 75C8321C0B84; Thu, 3 Feb 2022 13:37:55 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1643884675; bh=1oOtYBkAeRwnSWCWOvEJIeIr6/AvU7C23YUoJC8dAvc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=epFwNnq79Vg1uJvZ18YRlILkRk3a2PuWOhEBl8hA0KzTvY7YAG8aJ1AXHzb8QdoH+ Rc4ZqFz7MhlXtnVkXGVzPtzjYKtIBgd4xIxGxCl7PSFzRPt0eVluKk+T0K3DuU1bZZ FwU74BgM48hPjVE2adi43NHE4dGZ0/G7qgN2oiuY= MIME-Version: 1.0 Date: Thu, 03 Feb 2022 13:37:55 +0300 From: Marina Polyakova To: Etsuro Fujita Cc: Alvaro Herrera , Alexander Lakhin , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17355: Server crashes on ExecReScanForeignScan in postgres_fdw when accessing foreign partition In-Reply-To: References: <202202021442.hsxbhre2k533@alvherre.pgsql> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <0c5d710abcd92dc474b04ce802055a9f@postgrespro.ru> X-Sender: m.polyakova@postgrespro.ru Organization: Postgres Professional Content-Type: multipart/mixed; boundary="=_fc40521d129ac586c0f3737e947229c5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=_fc40521d129ac586c0f3737e947229c5 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed On 2022-02-03 09:38, Etsuro Fujita wrote: > I think it would be better to create a separate patch so that we test > not only this but other EvalPlanQual stuff such as ForeignRecheck, so > I applied the proposed patch to HEAD as well. > > Thanks! > > Best regards, > Etsuro Fujita Hello everyone in this thread! Looks like gcc 11.2.0 is now reporting a warning in the branches master/REL_14_STABLE, e.g. see CI https://github.com/postgres/postgres/runs/5047720839: [06:30:18.201] nodeForeignscan.c: In function ‘ForeignNext’: [06:30:18.201] nodeForeignscan.c:47:13: error: unused variable ‘estate’ [-Werror=unused-variable] [06:30:18.201] 47 | EState *estate = node->ss.ps.state; [06:30:18.201] | ^~~~~~ Please could you fix it? E.g. like in the attached patch - the following commands work for me with it: $ ./configure && COPT=-Werror make world-bin -- Marina Polyakova Postgres Professional: http://www.postgrespro.com --=_fc40521d129ac586c0f3737e947229c5 Content-Transfer-Encoding: base64 Content-Type: text/x-diff; name=diff_fix_ForeignNext_warning.patch Content-Disposition: attachment; filename=diff_fix_ForeignNext_warning.patch; size=661 ZGlmZiAtLWdpdCBhL3NyYy9iYWNrZW5kL2V4ZWN1dG9yL25vZGVGb3JlaWduc2Nhbi5jIGIvc3Jj L2JhY2tlbmQvZXhlY3V0b3Ivbm9kZUZvcmVpZ25zY2FuLmMKaW5kZXggMmM4N2IyZTIzOGEwZGE3 NjZiMTAzNzI4ZTc5MTUzOWRiMzkzYWRiZi4uMGZmMjA2NDMzNWZmNWJkMjVmMTUzMTc5M2RlMzUw MzEwZTk2OWJhMyAxMDA2NDQKLS0tIGEvc3JjL2JhY2tlbmQvZXhlY3V0b3Ivbm9kZUZvcmVpZ25z Y2FuLmMKKysrIGIvc3JjL2JhY2tlbmQvZXhlY3V0b3Ivbm9kZUZvcmVpZ25zY2FuLmMKQEAgLTQ0 LDcgKzQ0LDcgQEAgRm9yZWlnbk5leHQoRm9yZWlnblNjYW5TdGF0ZSAqbm9kZSkKIAlUdXBsZVRh YmxlU2xvdCAqc2xvdDsKIAlGb3JlaWduU2NhbiAqcGxhbiA9IChGb3JlaWduU2NhbiAqKSBub2Rl LT5zcy5wcy5wbGFuOwogCUV4cHJDb250ZXh0ICplY29udGV4dCA9IG5vZGUtPnNzLnBzLnBzX0V4 cHJDb250ZXh0OwotCUVTdGF0ZQkgICAqZXN0YXRlID0gbm9kZS0+c3MucHMuc3RhdGU7CisJRVN0 YXRlCSAgICplc3RhdGUgUEdfVVNFRF9GT1JfQVNTRVJUU19PTkxZID0gbm9kZS0+c3MucHMuc3Rh dGU7CiAJTWVtb3J5Q29udGV4dCBvbGRjb250ZXh0OwogCiAJLyogQ2FsbCB0aGUgSXRlcmF0ZSBm dW5jdGlvbiBpbiBzaG9ydC1saXZlZCBjb250ZXh0ICovCg== --=_fc40521d129ac586c0f3737e947229c5--