Re: How to use gethostbyname()

Поиск
Список
Период
Сортировка
От
Тема Re: How to use gethostbyname()
Дата
Msg-id Pine.LNX.4.21.0102191051390.4906-100000@phillip.formstar.com
обсуждение исходный текст
Ответ на How to use gethostbyname()  (<phillip@formstar.com>)
Список pgsql-general
I am running Postgres 7.0.0 and compiled Postgres myself. However, I did not add
any parameters to 'configure' script.

> <phillip@formstar.com> writes:
> > On Fri, 16 Feb 2001, Tom Lane wrote:
> >> <phillip@formstar.com> writes:
> > In psql, gethostbyname() is defined as taking a text parameter and return an
> > inet type value or reference.
> >>
> >> Huh?  There's no such function in the standard Postgres distribution.
>
> > If you do a '\df' at prompt, you will be able to see I am not lying.
>
> regression=# \df
> ...
>  text                     | format_type         | oid, integer
>  integer                  | get_bit             | bytea, integer
>  integer                  | get_byte            | bytea, integer
>  name                     | getdatabaseencoding |
>  name                     | getpgusername       |
>  integer                  | hashbpchar          | character
>  integer                  | hashchar            | "char"
>  integer                  | hashfloat4          | real
> ...
>
> It's not in 7.1, nor 7.0.  Where did you get it from?  Which Postgres
> version are you running, anyway?
>
>             regards, tom lane
>

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


В списке pgsql-general по дате отправления:

Предыдущее
От: Soma Interesting
Дата:
Сообщение: Re: International support
Следующее
От: "Raghunath T"
Дата:
Сообщение: Date difference in seconds