R Vijayanath writes:
> It would be great if you can tell me if I can write a
> procedure that can write the output to the OS(Linux
> OS) file.
You could try out PL/sh for that.
http://www.postgresql.org/~petere/plsh.html
YMMV
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter