Re: Feature request: include script file into function body

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: "Steve White" <swhite(at)aip(dot)de>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Feature request: include script file into function body
Date: 2011-02-01 19:36:13
Message-ID: 1191.1296588973@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Steve White 2011-02-01 19:59:15 Re: Feature request: include script file into function body
Previous Message Tom Lane 2011-02-01 19:35:01 Re: Feature request: include script file into function body (better syntax)