Re: Problem with pl/python procedure connecting to the internet

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Igor Sosa Mayor <joseleopoldo1792(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Problem with pl/python procedure connecting to the internet
Date: 2015-08-23 17:48:28
Message-ID: 55DA076C.8090105@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/23/2015 10:38 AM, Igor Sosa Mayor wrote:
> Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> writes:
>
>>> I tried both... in my system (archlinux) there is plpython2u and
>>> plpythonu. I think the 2nd one is python3.
>>
>> How did they get there?
>>
>> Or more to the point how where they built?
>
> just installed with postgresql which comes with archlinux. I did not
> built anything. But, really: I dont think the problem is plpython2u o 3:
> 1. I have in my system both and both have the same libraries (in this
> case, geopy);
> 2. other procedures with plpython (2 or 3) which DO NOT CONNECT to the
> internet work perfectly.
>
> The problem is the connection, either the setup in my laptop or the
> setup in my network (but I get the same problem at home and at work...)

You are using the same machine, the laptop, in both locations, correct?

If so then the problem is some sort of access control issue.

When you try an INSERT, what shows in?:

1) The Postgres logs.

2) The system log.

>
>> What happens if you change your geocodificar to use plpythonu?
>
> exactly the same. I tested all combinations...
>
> (thanks again!)
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2015-08-23 17:49:54 Re: Problem with pl/python procedure connecting to the internet
Previous Message Igor Sosa Mayor 2015-08-23 17:39:51 Re: Problem with pl/python procedure connecting to the internet