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 1fpw3O-0006nw-6w for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Aug 2018 13:41:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpw3M-0002JN-Ar for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Aug 2018 13:41:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpw3M-0002JG-54 for pgsql-bugs@lists.postgresql.org; Wed, 15 Aug 2018 13:41:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpw3J-0004oL-C8 for pgsql-bugs@lists.postgresql.org; Wed, 15 Aug 2018 13:41:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7FDfUr3004032; Wed, 15 Aug 2018 09:41:30 -0400 From: Tom Lane To: kai.kratz@googlemail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15327: postgres segfaults on ALTER FUNCTION ... SET SCHEMA ... In-reply-to: <153433935452.10433.7683077498094467603@wrigleys.postgresql.org> References: <153433935452.10433.7683077498094467603@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Wed, 15 Aug 2018 13:22:34 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4030.1534340490.1@sss.pgh.pa.us> Date: Wed, 15 Aug 2018 09:41:30 -0400 Message-ID: <4031.1534340490@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > pg-user=# CREATE SCHEMA test_schema; > CREATE SCHEMA > pg-user=# CREATE FUNCTION custom_eq(int, int) > RETURNS BOOL > LANGUAGE SQL IMMUTABLE AS > $$ > SELECT $1 = $2; > $$; > CREATE FUNCTION > pg-user=# ALTER FUNCTION custom_eq(int, int) SET SCHEMA test_schema; > server closed the connection unexpectedly Huh. Works fine for me. Is the server you're using custom-built? If so, what build options did you use? If not, where did you get it from? In either case, the output of pg_config might be useful. regards, tom lane