Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TBrPd-0007EG-Ur for pgsql-admin@postgresql.org; Wed, 12 Sep 2012 18:11:46 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TBrPc-0003Hq-Pa for pgsql-admin@postgresql.org; Wed, 12 Sep 2012 18:11:45 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1TBrPb-0007FO-Vg; Wed, 12 Sep 2012 14:11:43 -0400 Date: Wed, 12 Sep 2012 14:11:43 -0400 From: Bruce Momjian To: Thomas Kellerer Cc: pgsql-admin@postgresql.org Subject: Re: Missing loadable libraries when running pg_upgrade 9.1 -> 9.2 Message-ID: <20120912181143.GA1850@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201209/56 X-Sequence-Number: 39997 On Wed, Sep 12, 2012 at 12:03:21PM +0200, Thomas Kellerer wrote: > Thomas Kellerer wrote on 12.09.2012 11:09: > >Is there a way to find out which function (or extension?) is using those libraries in order to remove that dependency? > > What I ended up doing is to search through my pg_dump backups and I found the "offending" database. > After removing the functions in question, everything went smoothly. > > Is there a better way to find those functions rather than doing a grep on the dump files? Well, pg_upgrade uses SQL queries to find those entries, so you could turn on logging and look at the SQL queries that look in the pg_proc table for such entries. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +