Re: [BUGS] Feature request: include script file into function body (better syntax)

2011-02-01 Thread Kevin Grittner
Steve White wrote: > I said that the script interpreter might do this... The script interpreter runs on the server. -Kevin -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] Feature request: include script file into function body (better syntax)

2011-02-01 Thread Steve White
Hi Tom, I already agreed to Kevin's proposed syntax, and it is better than my suggestion, but mine isn't quite as crazy as you make out. On 1.02.11, Tom Lane wrote: > Steve White writes: > > Try this instead: > > > > > CREATE OR REPLACE FUNCTION

Re: [BUGS] Feature request: include script file into function body (better syntax)

2011-02-01 Thread Tom Lane
Steve White writes: > Try this instead: > > CREATE OR REPLACE FUNCTION > myfunc( ... ) > RETURNS VOID AS '#PGSQL_IMPORT filename' LANGUAGE PLPYTHONU; > I think having psql decide that string

Re: [BUGS] Feature request: include script file into function body (better syntax)

2011-02-01 Thread Steve White
Hi again, Now that I know what got you all riled, I can propose something that might be more satisfactory. See below. On 1.02.11, Steve White wrote: > Hi again, all, > > OK I think I now know what the misunderstanding is. > > > [Please don't top-post. Rearranged for clarity.] > > > > Steve