Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eS48p-0007MJ-HO for pgsql-general@arkaria.postgresql.org; Thu, 21 Dec 2017 16:56:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eS48o-000161-PQ for pgsql-general@arkaria.postgresql.org; Thu, 21 Dec 2017 16:56:18 +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.84_2) (envelope-from ) id 1eS48o-00015r-I7 for pgsql-general@lists.postgresql.org; Thu, 21 Dec 2017 16:56:18 +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 1eS48m-0003eP-48 for pgsql-general@postgresql.org; Thu, 21 Dec 2017 16:56:18 +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 vBLGuE5q002831; Thu, 21 Dec 2017 11:56:14 -0500 From: Tom Lane To: Vincenzo Romano cc: PostgreSQL General Subject: Re: [v10] CREATE TEMP FUNCTION/CREATE FUNCTION PG_TEMP.X In-reply-to: References: <2537.1513875130@sss.pgh.pa.us> Comments: In-reply-to Vincenzo Romano message dated "Thu, 21 Dec 2017 17:53:55 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2829.1513875374.1@sss.pgh.pa.us> Date: Thu, 21 Dec 2017 11:56:14 -0500 Message-ID: <2830.1513875374@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Vincenzo Romano writes: > 2017-12-21 17:52 GMT+01:00 Tom Lane : >> You have to schema-qualify the temp function name when calling it, too. > So search_path is not used with functions? pg_temp is explicitly ignored when searching for functions/operators. Otherwise, installing a trojan horse is just too easy. regards, tom lane