Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9F737C2FBC8 for ; Sun, 27 May 2012 17:54:14 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SYkTd-0000qQ-37 for pgsql-bugs@postgresql.org; Sun, 27 May 2012 20:54:14 +0000 Received: by pbbrp8 with SMTP id rp8so3835919pbb.19 for ; Sun, 27 May 2012 13:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=+RTIkP01qg3Pl1Tnj9LaorjxeccbxmyF9Sq/tPdEtOQ=; b=kEU2P+VMB8+TOVBAxOl927ms21w9XQSWXKDJx9DprgoHlolMh0DljKOg8U8/VV+wFe H6JQ+xJpXDCp9wCZlMiGk2/DS/2fOoUUBxu6P006KqhC8UDg0D6Syukd3WwEWuXK9Yhr 2wtjP2wyXOC3r66wh3K+EWSDAu11igSKZrrso4xNT8Dq7q3+AOmlToyZFmhIEHyFyCab HtmQ9JLJSYcav30W+FAH33SiXu5jiqob4KkyLFhnooYy1FlCb85DuKh4gp6PhISQ8eI4 zfcz1CCjUPHAbbyAM5MyEHsqCRMiMoT196e0M8ziMEaXGqbuBFoXAs70442mAahdNnR8 UNVg== Received: by 10.68.225.6 with SMTP id rg6mr20580667pbc.100.1338152039723; Sun, 27 May 2012 13:53:59 -0700 (PDT) Received: from [192.168.0.3] (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id qp3sm11626668pbc.17.2012.05.27.13.53.58 (version=SSLv3 cipher=OTHER); Sun, 27 May 2012 13:53:59 -0700 (PDT) Message-ID: <4FC29445.4080007@gmail.com> Date: Sun, 27 May 2012 13:53:25 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Tom Lane CC: Bruce Momjian , pgsql-bugs@postgresql.org Subject: Re: BUG #6666: pg_upgrade 9.2beta1 plpython/plpython2 References: <20120527022416.GA20260@momjian.us> <4FC2773B.6050206@gmail.com> <28633.1338150915@sss.pgh.pa.us> In-Reply-To: <28633.1338150915@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201205/209 X-Sequence-Number: 33180 On 05/27/2012 01:35 PM, Tom Lane wrote: > 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. I will give that a try. Though knowing what the problem is I wonder if another solution is to make the plpythonu lib layout follow the description of the 2/3 split detailed here: http://www.postgresql.org/docs/9.2/static/plpython-python23.html In particular: "The language named plpythonu implements PL/Python based on the default Python language variant, which is currently Python 2" In other words automatically create a symlink: plpython.so -> plpython2.so* > > Hopefully pg_upgrade will then cope with upgrading them ... > > regards, tom lane -- Adrian Klaver adrian.klaver@gmail.com