Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 65F2711DF229 for ; Thu, 31 May 2012 20:46:23 -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 1SaF4Q-0000eE-1v for pgsql-bugs@postgresql.org; Thu, 31 May 2012 23:46:22 +0000 Received: by pbbrp8 with SMTP id rp8so2136037pbb.19 for ; Thu, 31 May 2012 16:46:09 -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=wNGJDNURYR7QbYvZkCehnz7aS2OydL5/A9usuzxz3AE=; b=PNNGcM8MKia2OvvrfU74jLpDXK6E206/qSHTNSzsvsg6S7CI8ChlkPhKF/tjB6yeX5 tr1Vy35Q2cTpUeUhhS7p1Z/QZVRI1YMb8SBCyZVx8eHpPQnLyg9TgsdIJsXvT/4iFdbj fstE2lVSn0vsnCZUswuBVao93FfGuKA1Jh01zqHwiudTpmlVeOi3xkVPvpRs+GckwqtP npD65KI1quhHkmjpxuSx70d7o2UHJYX6zJDDnY8k2GDDHOrInr6emm8uaA1bmi6OJ41t 24eTAcI4JGQIbw6ortduLriM4Dmz3gUsou7+oMw8pzmuMNXs9YxHMVHPnlFbNzqFGxUS RmfA== Received: by 10.68.238.135 with SMTP id vk7mr4264708pbc.134.1338507968910; Thu, 31 May 2012 16:46:08 -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 ph9sm636372pbb.41.2012.05.31.16.46.07 (version=SSLv3 cipher=OTHER); Thu, 31 May 2012 16:46:08 -0700 (PDT) Message-ID: <4FC8029C.6030400@gmail.com> Date: Thu, 31 May 2012 16:45:32 -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: Bruce Momjian CC: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #6666: pg_upgrade 9.2beta1 plpython/plpython2 References: <20120530023416.GQ20260@momjian.us> <20120531185342.GJ26894@momjian.us> <4FC7D675.5050005@gmail.com> <22498.1338503044@sss.pgh.pa.us> <20120531223030.GL26894@momjian.us> In-Reply-To: <20120531223030.GL26894@momjian.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/251 X-Sequence-Number: 33222 On 05/31/2012 03:30 PM, Bruce Momjian wrote: > On Thu, May 31, 2012 at 06:24:04PM -0400, Tom Lane wrote: >> >> Hm, I'm not sure about that. The general charter of pg_dump is to >> produce a dump that will replicate the state of the database. >> Editorializing on it in order to make it more likely to reload in a >> different version of PG seems to violate that charter. >> >> I think the current state where pg_upgrade just complains about those >> functions and tells you to remove them by hand is far safer than >> creating blind spots in pg_dump. > > Agreed. I think the big question is whether the 8.1 move of the PL > language support functions to pg_catalog should have suppressed dumping > the pre-8.1 PL functions in the public schema. > > Another question is whether having these functions in two schemas > presents any possible danger. Users using pg_dumpall and restoring (not > using pg_upgrade) will have the plpython functions removed because they > will error out, so maybe we should just let the plpython renaming trim > those out. However, this doesn't remove the other PL lanauge > duplicates. > > I share Tom's caution on this, but I think we need to make sure we are > addressing any possible risk of an isolated pg_upgrade fix, now that we > understand the cause. There are two different things at work here. One the duplicate functions, two the renaming of the plpython libraries. The first would not have been an issue without the second. I still say for compatibility the plpython libraries should follow a scheme that reflects how the language is being handled in the database: plpython.so -> plpython2.so plpython2.so plpython3.so (optional) Not sure if that is possible, just my 2 cents. In any case the overriding issue would seem to be covered in another thread on --hackers 'pg_upgrade libraries check' In other words determining who is responsible for tracking library changes? > -- Adrian Klaver adrian.klaver@gmail.com