Re: plperlu stored procedure seems to freeze for a minute - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: plperlu stored procedure seems to freeze for a minute
Date
Msg-id 20151201153832.GG2763@alvherre.pgsql
Whole thread Raw
In response to plperlu stored procedure seems to freeze for a minute  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
List pgsql-general
Peter J. Holzer wrote:

> Two messages from the same line of the same plperlu stored procedure, 68
> seconds apart. So what is this line 36?
>
>     confess "impossible result '$success' (payload=$payload)";
>
> What? The first message clearly comes from interpolating $success
> (which is undef at that point) into the argument. The second from
> confess itself. What could cause a plperlu procedure to freeze for 68
> seconds between the call to confess and its output?

Try running it under strace.  Maybe it's trying to resolve some name and
its resolver takes a minute to discover it can't, or something like that.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: plperlu stored procedure seems to freeze for a minute
Next
From: Kevin Grittner
Date:
Subject: Re: plperlu stored procedure seems to freeze for a minute