Re: gethostbyaddr() or equivalent?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: gethostbyaddr() or equivalent?
Дата
Msg-id Pine.LNX.4.33.0209101218080.1392-100000@polluelo.lab.protecne.cl
обсуждение исходный текст
Ответ на gethostbyaddr() or equivalent?  (Jeff Boes <jboes@nexcerpt.com>)
Список pgsql-general
On Tue, 10 Sep 2002, Jeff Boes wrote:

> CREATE FUNCTION fn_ip2name(text) returns text as '
> use Socket;
> return scalar gethostbyaddr(inet_aton($_[0]),AF_INET)
> ' language 'plperl';
>
> However, this fails:
>
> ERROR:  creation of function failed:
> require trapped by operation mask at (eval 2) line 2.

I think you need to use the unstrusted version of the language (plperlu,
not plperl).

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"El sudor es la mejor cura para un pensamiento enfermo" (Bardia)


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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: describe table query?
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: ???Varchar()