Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frk6I-0006f2-Dr for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Aug 2018 13:20:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frk6G-0002hB-L7 for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Aug 2018 13:20:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frk6G-0002h4-Aa for pgsql-bugs@lists.postgresql.org; Mon, 20 Aug 2018 13:20:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frk6D-0001Ed-Fb for pgsql-bugs@lists.postgresql.org; Mon, 20 Aug 2018 13:20:03 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7KDJvkk000816; Mon, 20 Aug 2018 09:19:57 -0400 From: Tom Lane To: Kai Kratz cc: andres@anarazel.de, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15327: postgres segfaults on ALTER FUNCTION ... SET SCHEMA ... In-reply-to: References: <153433935452.10433.7683077498094467603@wrigleys.postgresql.org> <4031.1534340490@sss.pgh.pa.us> <20180815151940.5cocuyqgt45iuqpo@alap3.anarazel.de> Comments: In-reply-to Kai Kratz message dated "Mon, 20 Aug 2018 07:22:25 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19300.1534771197.1@sss.pgh.pa.us> Date: Mon, 20 Aug 2018 09:19:57 -0400 Message-ID: <19301.1534771197@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kai Kratz writes: > It is an in-house developed FDW. Part of the surprise was that we > execute the postgres integration tests (as described here: > https://www.postgresql.org/docs/current/static/regress-run.html) > against a postgres instance with our custom FDW loaded and no errors > show up. Well, actually, it *is* pretty surprising that an FDW would affect the behavior of ALTER FUNCTION. Are you perhaps also hooking into some parser hooks, or something else that's outside the FDW API? Could you show us a backtrace from the segfault? regards, tom lane