Re: Feature request: include script file into function body (better syntax) - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Feature request: include script file into function body (better syntax)
Date
Msg-id 1161.1296588901@sss.pgh.pa.us
Whole thread Raw
In response to Re: Feature request: include script file into function body (better syntax)  (Steve White <swhite@aip.de>)
Responses Re: Feature request: include script file into function body (better syntax)
List pgsql-bugs
Steve White <swhite@aip.de> writes:
> Try this instead:

> ================================================
> CREATE OR REPLACE FUNCTION
>         myfunc( ... )
> RETURNS VOID AS '#PGSQL_IMPORT filename' LANGUAGE PLPYTHONU;
> ================================================

I think having psql decide that string literals mean something other
than their face value is Right Out --- it would bite you on the rear
just when you least expect it.  And the notion of the behavior being
language-dependent is right out to the fourth power.  But see my
alternative proposal to Kevin just now.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
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