Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB2AR-0002gR-5N for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Nov 2016 16:19:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cB2AQ-0007qf-KB for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Nov 2016 16:19:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cB26i-0007kF-N2 for pgsql-hackers@postgreSQL.org; Sun, 27 Nov 2016 16:15:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cB26c-0003pA-Cv for pgsql-hackers@postgreSQL.org; Sun, 27 Nov 2016 16:15:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uARGF1f1005775; Sun, 27 Nov 2016 11:15:01 -0500 From: Tom Lane To: Jim Nasby cc: pgsql-hackers@postgreSQL.org Subject: Re: Wrong order of tests in findDependentObjects() In-reply-to: References: <13224.1480177514@sss.pgh.pa.us> Comments: In-reply-to Jim Nasby message dated "Sun, 27 Nov 2016 09:59:30 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5773.1480263301.1@sss.pgh.pa.us> Date: Sun, 27 Nov 2016 11:15:01 -0500 Message-ID: <5774.1480263301@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Jim Nasby writes: > I suspect this is unrelated, but I've run into another oddity with > extension dependency: if an extension creates any temporary objects the > extension will install and function correctly... until the backend that > created the extension quits. This is VERY confusing if you've never come > across it before, because you'll do a bunch of work in a single script > but when you try to use the extension for real it will "randomly" just > vanish. Yeah, I was wondering about that yesterday --- that comment mentions the case of temporary objects, but it only fixes the problem while the script runs. Maybe there should be a separate test for "we're doing temporary-object cleanup" that would similarly prevent recursion to an extension? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers