From: Terje Elde <terje@elde.net>
To: george.wesington@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13823: Database crash - import requests in plpython3u
Date: Fri, 18 Dec 2015 06:59:28 +0100
Message-ID: <01D7F600-660B-44AE-86CC-F56BD563DD2F@elde.net> (raw)
In-Reply-To: <20151217133409.3886.97313@wrigleys.postgresql.org>
References: <20151217133409.3886.97313@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
> On 17 Dec 2015, at 14:34, george.wesington@gmail.com wrote:
>
> After the crash the database needs to be restarted because it cannot be
> accessed anymore. The same script runs perfectly when run directly from
> python.
>
> Let me know if you need any more information.
Could you try to run it as the PostgreSQL user, but outside PostgreSQL?
Also, please double check that it's run as Python 3 when testing that. The code looks fairly compatible between 2.7 and 3.x, and my best initial guess would be that Python crashes on a missing or faulty import.
Can you successfully run a simpler Python function from PostgreSQL? (One that doesn't import anything). Easy way to narrow down if it's likely the requests-module in Python, or if it's related to plpython.
Oh, and how did you install Python, PostgreSQL, plpython and the requests module?
Terje
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: terje@elde.net, george.wesington@gmail.com
Subject: Re: BUG #13823: Database crash - import requests in plpython3u
In-Reply-To: <01D7F600-660B-44AE-86CC-F56BD563DD2F@elde.net>
References: <20151217133409.3886.97313@wrigleys.postgresql.org> <01D7F600-660B-44AE-86CC-F56BD563DD2F@elde.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox