> phillip@formstar.com writes:
>
> > In psql, gethostbyname() is defined as taking a text parameter and return an
> > inet type value or reference.
>
> I don't see a function gethostbyname() in my copy. Where did you get it
> from and what is its source code?
Don't tell me it is one of those "grab from libc" tricks.
CREATE FUNCTION getpid () returns int4 as '/lib/libc.so.6' LANGUAGE 'C';
SELECT getpid();
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026