How to use gethostbyname()

From: <phillip(at)formstar(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: How to use gethostbyname()
Date: 2001-02-16 04:27:14
Message-ID: Pine.LNX.4.21.0102161521240.19826-100000@phillip.formstar.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In psql, gethostbyname() is defined as taking a text parameter and return an
inet type value or reference.

However, if you do

psql=# select gethostbyname('www.postgres.org');
gethostbyname
---------------
<unprintable>
(1 row)

the inet address will be unprintable.

Has anyone got any idea?

Phillip Pan
-----------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 2001-02-16 05:36:14 Re: PostgreSQL vs Oracle vs DB2 vs MySQL - Which should I use?
Previous Message Mike Mascari 2001-02-16 03:50:06 RE: how to see column comments?