Re: How to use gethostbyname()

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: phillip(at)formstar(dot)com, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to use gethostbyname()
Date: 2001-02-16 22:47:16
Message-ID: 200102162247.RAA11720@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> phillip(at)formstar(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Burski 2001-02-16 22:47:46 Re: Number of Connections
Previous Message adb 2001-02-16 22:42:39 Rserv question or docs?