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: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "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 22:25:43
Message-ID: 4330.1296599143@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:
> Robert Haas <robertmhaas(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Yuvachitra 2011-02-02 06:10:51 BUG #5860: initdb failing with could not create directory "C:/Program Files ": File exists error
Previous Message Kevin Grittner 2011-02-01 22:22:54 Re: Feature request: include script file into function body