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 4330.1296599143@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>)
List pgsql-bugs
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Robert Haas <robertmhaas@gmail.com> wrote:
>> Can't you already do it this way:
>>
>> \set yadda `cat yadda_yadda.py`
>> CREATE FUNCTION yadda_yadda() returns text language plpythonu AS
>> :'yadda';

> Clever, but not pretty.

Yeah.  So the question is whether this is useful enough to justify
providing a shortcut.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
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