Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 1A3F44E4EE6 for ; Sat, 26 May 2012 20:42:23 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SYQco-0007JW-7w for pgsql-bugs@postgresql.org; Sat, 26 May 2012 23:42:22 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SYQcb-0001JK-MC for pgsql-bugs@postgresql.org; Sat, 26 May 2012 23:42:10 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SYQcb-00027L-3s for pgsql-bugs@postgresql.org; Sat, 26 May 2012 23:42:09 +0000 Date: Sat, 26 May 2012 23:42:09 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6666: pg_upgrade 9.2beta1 plpython/plpython2 To: pgsql-bugs@postgresql.org From: adrian.klaver@gmail.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/205 X-Sequence-Number: 33176 The following bug has been logged on the website: Bug reference: 6666 Logged by: Adrian Klaver Email address: adrian.klaver@gmail.com PostgreSQL version: 9.0.7 Operating system: Linux/OpenSuse 12.1 Description: = I thought this was fixed in: http://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommit;h=3Dcfe443a= b9d42b4ffe950608f01c3a4bdc2895c7b I just tried an upgrade from 9.0.7 to 9.2beta1 using pg_upgrade. I ran it first with -c and everything passed. When I did a live upgrade it failed with this message in pg_upgrade_restore.log: CREATE FUNCTION plpython_call_handler() RETURNS language_handler LANGUAGE c AS '$libdir/plpython', 'plpython_call_handler'; psql:pg_upgrade_dump_db.sql:13541: ERROR: could not access file "$libdir/plpython": No such file or directory That is indeed true, there is no plpython, there is plpython2 instead. I created a symlink plpython --> plpython2 and the upgraded succeeded after a re-initdb of the new cluster. =