Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UmVa0-0001Li-Nm for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Jun 2013 20:54:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UmVa0-0003FD-8d for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Jun 2013 20:54:12 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UmVZz-0003F7-8f for pgsql-bugs@postgresql.org; Tue, 11 Jun 2013 20:54:11 +0000 Received: from eisentraut.org ([85.214.91.16] helo=gattler.pezone.net) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UmVZv-0007MU-Ie for pgsql-bugs@postgresql.org; Tue, 11 Jun 2013 20:54:10 +0000 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by gattler.pezone.net (Postfix) with ESMTPSA id 816435A8011; Tue, 11 Jun 2013 20:54:04 +0000 (UTC) Message-ID: <51B78E64.5050102@gmx.net> Date: Tue, 11 Jun 2013 16:53:56 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Dave Page CC: Pg Bugs Subject: Re: Inconsistent PL error handling References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 5/9/13 5:40 PM, Dave Page wrote: > Whilst working on a build issue with pl/python, I noticed an > inconsistency in the way the server reacts to attempts to use PLs for > which the interpreter doesn't exist. Not sure how feasible it would be > to fix this, but the Python case doesn't seem ideal: > > psql.bin (9.3beta1) > Type "help" for help. > > postgres=# CREATE LANGUAGE plperl; > ERROR: could not load library > "/opt/PostgreSQL/9.3/lib/postgresql/plperl.so": libperl.so: cannot > open shared object file: No such file or directory > postgres=# CREATE LANGUAGE plpython3u; > CREATE LANGUAGE > postgres=# CREATE FUNCTION pyversion() RETURNS text AS > $$ > import sys > return sys.version > $$ LANGUAGE 'plpython3u'; > The connection to the server was lost. Attempting reset: Failed. > !> I can't reproduce that. For me, a missing plpython install results in the same kind of error message as a missing plperl install. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs