Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 76973C2FBC8 for ; Sun, 27 May 2012 17:35:33 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SYkBX-0006wT-5r for pgsql-bugs@postgresql.org; Sun, 27 May 2012 20:35:32 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4RKZFf7028634; Sun, 27 May 2012 16:35:15 -0400 (EDT) To: Adrian Klaver cc: Bruce Momjian , pgsql-bugs@postgresql.org Subject: Re: BUG #6666: pg_upgrade 9.2beta1 plpython/plpython2 In-reply-to: <4FC2773B.6050206@gmail.com> References: <20120527022416.GA20260@momjian.us> <4FC2773B.6050206@gmail.com> Comments: In-reply-to Adrian Klaver message dated "Sun, 27 May 2012 11:49:31 -0700" Date: Sun, 27 May 2012 16:35:15 -0400 Message-ID: <28633.1338150915@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/208 X-Sequence-Number: 33179 Adrian Klaver writes: > After reading the above thread here is what the queries mentioned return: > production=# SELECT nspname,proname,probin FROM pg_proc,pg_namespace > WHERE probin LIKE '%python%' and pg_proc.pronamespace=pg_namespace.oid; > nspname | proname | probin > ------------+-------------------------+------------------ > pg_catalog | plpython_call_handler | $libdir/plpython > pg_catalog | plpython_inline_handler | $libdir/plpython > public | plpython_call_handler | $libdir/plpython > (3 rows) I think what you need to do is drop the one in public, ie drop function public.plpython_call_handler(); The other two are what the language is actually using nowadays. Hopefully pg_upgrade will then cope with upgrading them ... regards, tom lane