Re: plperlu stored procedure seems to freeze for a minute

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plperlu stored procedure seems to freeze for a minute
Date: 2015-12-01 15:38:32
Message-ID: 20151201153832.GG2763@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2015-12-01 15:42:26 Re: plperlu stored procedure seems to freeze for a minute
Previous Message Adrian Klaver 2015-12-01 15:16:04 Re: plperlu stored procedure seems to freeze for a minute