Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B098D11DF228 for ; Thu, 31 May 2012 19:24:20 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SaDn0-00055v-5I for pgsql-bugs@postgresql.org; Thu, 31 May 2012 22:24:19 +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 q4VMO45U022499; Thu, 31 May 2012 18:24:04 -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: <4FC7D675.5050005@gmail.com> References: <20120530023416.GQ20260@momjian.us> <20120531185342.GJ26894@momjian.us> <4FC7D675.5050005@gmail.com> Comments: In-reply-to Adrian Klaver message dated "Thu, 31 May 2012 13:37:09 -0700" Date: Thu, 31 May 2012 18:24:04 -0400 Message-ID: <22498.1338503044@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/247 X-Sequence-Number: 33218 Adrian Klaver writes: > On 05/31/2012 11:53 AM, Bruce Momjian wrote: >> On Tue, May 29, 2012 at 10:34:16PM -0400, Bruce Momjian wrote: >> OK, so what do people want me to do on this? Apply my pg_upgrade fix or >> go for a more general fix that will prevent pg_dump from dumping out >> these duplicate functions --- it would involve checking for public >> schema functions who's names and probin match pg_pltemplate entries. >> Either will fix pg_upgrade. > I would say the pg_dump fix. That one gets rid of the duplicates for > everyone, not just those folks using pg_upgrade. 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. regards, tom lane