Re: BUG #5034: plperlu problem with gethostbyname

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: BUG #5034: plperlu problem with gethostbyname
Дата
Msg-id 603c8f070909042027u7860d858y2c78b48c8c9bb390@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #5034: plperlu problem with gethostbyname  ("Diego de Lima" <diego_de_lima@hotmail.com>)
Ответы Re: BUG #5034: plperlu problem with gethostbyname  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Thu, Sep 3, 2009 at 5:21 PM, Diego de Lima<diego_de_lima@hotmail.com> wr=
ote:
>
> The following bug has been logged online:
>
> Bug reference: =A0 =A0 =A05034
> Logged by: =A0 =A0 =A0 =A0 =A0Diego de Lima
> Email address: =A0 =A0 =A0diego_de_lima@hotmail.com
> PostgreSQL version: 8.3.7
> Operating system: =A0 Linux Fedora 10
> Description: =A0 =A0 =A0 =A0plperlu problem with gethostbyname
> Details:
>
> The gethostbyname Perl internal function doesn't work properly on 8.3.7,
> returning "1" instead of the desired data array.
>
> On Postgres 8.2.x it works perfectly.
>
> Using Perl v5.10.0.
>
> Using Fedora 10 default rpm packages, all updated last month via yum.

I can't reproduce this on a clean build of 8.3.7 or on a clean build
of CVS HEAD, both against perl 5.10.0, so I don't think this is a
PostgreSQL bug.  I'm guessing you have a bug in your code someplace.
Here's the test case I used.

create or replace function test() returns varchar as $$use
Data::Dumper; Dumper(gethostbyname("www.google.com"));$$ language
plperlu;

select test();

...Robert

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

Предыдущее
От: "Rob Resendez"
Дата:
Сообщение: BUG #5037: jdbc bug \uffff
Следующее
От: "Luke Koops"
Дата:
Сообщение: BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.