Re: Feature request: include script file into function body - Mailing list pgsql-bugs

From Steve White
Subject Re: Feature request: include script file into function body
Date
Msg-id 20110201195915.GA8252@cashmere.aip.de
Whole thread Raw
In response to Re: Feature request: include script file into function body  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Feature request: include script file into function body  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-bugs
Hi guys,


On  1.02.11, Tom Lane wrote:
> "Kevin Grittner" <Kevin.Grittner@wicourts.gov> 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
> > ;

Yes this will work for me.

>
> Just got this --- looks like we independently arrived at the same
> conclusion.
>
>             regards, tom lane
>

--
| -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
| Steve White                                             +49(331)7499-202
| E-Science                                        Zi. 27  Villa Turbulenz
| -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
| Astrophysikalisches Institut Potsdam (AIP)
| An der Sternwarte 16, D-14482 Potsdam
|
| Vorstand: Prof. Dr. Matthias Steinmetz, Peter A. Stolz
|
| Stiftung privaten Rechts, Stiftungsverzeichnis Brandenburg: III/7-71-026
| -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Feature request: include script file into function body
Next
From: Steve White
Date:
Subject: Re: Feature request: include script file into function body (better syntax)