vanessa escribió:
>
> Hi guys,
>
> I was wondering how could i (if at all possible) to use say a command like:
>
> \! touch fred.txt in a function?
> i.e.
>
> CREATE FUNCTION myfunc() RETURNS TRIGGER AS
> 'BEGIN
> \! touch fred.txt
> RETURN NEW;
> END;'
> LANGUAGE 'p
Hi guys,
I was wondering how could i (if at all possible) to use say a command like:
\! touch fred.txt in a function?
i.e.
CREATE FUNCTION myfunc() RETURNS TRIGGER AS
'BEGIN
\! touch fred.txt
RETURN NEW;
END;'
LANGUAGE 'plpgsql';
At the moment i get:
ERROR: syntax er