Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9AE401337B69 for ; Tue, 1 Feb 2011 12:05:06 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 47003-05 for ; Tue, 1 Feb 2011 16:04:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id AD249133616B for ; Tue, 1 Feb 2011 12:04:58 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p11G2Qpj026901; Tue, 1 Feb 2011 11:02:26 -0500 (EST) To: Steve White cc: pgsql-bugs@postgresql.org Subject: Re: Feature request: include script file into function body In-reply-to: <20110201112120.GA1327@cashmere.aip.de> References: <20110201112120.GA1327@cashmere.aip.de> Comments: In-reply-to Steve White message dated "Tue, 01 Feb 2011 12:21:20 +0100" Date: Tue, 01 Feb 2011 11:02:25 -0500 Message-ID: <26900.1296576145@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/4 X-Sequence-Number: 29276 Steve White writes: > It would be really nice to have a way to load script (especially Python > and Perl) from a separate file into a function body. This seems like a security hole, ie, you could use it to read any file the backend has access to. regards, tom lane