All that proc does is get the hostname of the local machine if none is given.
I have a couple of options.
- Make that parameter mandatory. ( I don't know if this is possible in pgplsql).
- Extend plplsql with this functionality. (Simple C program or even calling the OS)
- Find a way to use [ns_conn host], again I don't know how to do this in pgplsql.
Any suggestions are appreciated.