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

From Tom Lane
Subject Re: Feature request: include script file into function body
Date
Msg-id 1191.1296588973@sss.pgh.pa.us
Whole thread Raw
In response to Re: Feature request: include script file into function body  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: Feature request: include script file into function body
List pgsql-bugs
"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
> ;

Just got this --- looks like we independently arrived at the same
conclusion.

            regards, tom lane

pgsql-bugs by date:

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