Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0D5311337999 for ; Tue, 1 Feb 2011 15:38:53 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 94030-06 for ; Tue, 1 Feb 2011 19:38:46 +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 19485133616B for ; Tue, 1 Feb 2011 15:38:44 -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 p11JaDKT001192; Tue, 1 Feb 2011 14:36:13 -0500 (EST) To: "Kevin Grittner" cc: "Steve White" , pgsql-bugs@postgresql.org Subject: Re: Feature request: include script file into function body In-reply-to: <4D480622020000250003A10C@gw.wicourts.gov> References: <20110201112120.GA1327@cashmere.aip.de> <26900.1296576145@sss.pgh.pa.us> <20110201164422.GA3023@cashmere.aip.de> <4D47EB12020000250003A0EE@gw.wicourts.gov> <20110201185004.GA7511@cashmere.aip.de> <4D480622020000250003A10C@gw.wicourts.gov> Comments: In-reply-to "Kevin Grittner" message dated "Tue, 01 Feb 2011 13:09:54 -0600" Date: Tue, 01 Feb 2011 14:36:13 -0500 Message-ID: <1191.1296588973@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/23 X-Sequence-Number: 29295 "Kevin Grittner" writes: > Maybe some option for the \i command? \iq (for input quoted) with > automatic $$ quoting around what is read? > That way you could do something like: > CREATE FUNCTION yadda_yadda() returns text language plpythonu as > \iq yadda_yadda.py > ; Just got this --- looks like we independently arrived at the same conclusion. regards, tom lane