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

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

OK, that works.  It sure ain't pretty, though.

Clever, but not pretty.

-Kevin

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: Feature request: include script file into function body
Next
From: Tom Lane
Date:
Subject: Re: Feature request: include script file into function body