pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Dave Page <dpage@pgadmin.org>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Inconsistent PL error handling
Date: Tue, 11 Jun 2013 16:53:56 -0400
Message-ID: <51B78E64.5050102@gmx.net> (raw)
In-Reply-To: <CA+OCxoyy_2x6cc4YnTwL+CYGgmedkYgL24J7NK+X+_+Y6w43Tw@mail.gmail.com>
References: <CA+OCxoyy_2x6cc4YnTwL+CYGgmedkYgL24J7NK+X+_+Y6w43Tw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)

Message-ID: <51B78E64.5050102@gmx.net>
Permalink:  ../51B78E64.5050102@gmx.net/
Also on:    postgresql.org/message-id/51B78E64.5050102@gmx.net

 · 

reply

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: peter_e@gmx.net, dpage@pgadmin.org
  Subject: Re: Inconsistent PL error handling
  In-Reply-To: <51B78E64.5050102@gmx.net>
  References: <CA+OCxoyy_2x6cc4YnTwL+CYGgmedkYgL24J7NK+X+_+Y6w43Tw@mail.gmail.com> <51B78E64.5050102@gmx.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