Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCaoF-0002xx-0W for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Dec 2016 23:30:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cCaoE-0004TK-7O for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Dec 2016 23:30:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cCamq-0002qn-3z for pgsql-hackers@postgresql.org; Thu, 01 Dec 2016 23:29:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cCamj-0000Af-5g for pgsql-hackers@postgresql.org; Thu, 01 Dec 2016 23:29:07 +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 uB1NSufG020650; Thu, 1 Dec 2016 18:28:57 -0500 From: Tom Lane To: Jim Nasby cc: pgsql-hackers@postgresql.org Subject: Re: Wrong order of tests in findDependentObjects() In-reply-to: <91fc28a2-cff7-abb5-08dc-9715f938b55b@BlueTreble.com> References: <13224.1480177514@sss.pgh.pa.us> <5774.1480263301@sss.pgh.pa.us> <865865e1-7064-0319-e7ea-13b7fddad4f1@BlueTreble.com> <5219.1480352684@sss.pgh.pa.us> <23800.1480362490@sss.pgh.pa.us> <13624.1480626576@sss.pgh.pa.us> <91fc28a2-cff7-abb5-08dc-9715f938b55b@BlueTreble.com> Comments: In-reply-to Jim Nasby message dated "Thu, 01 Dec 2016 15:14:36 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20648.1480634936.1@sss.pgh.pa.us> Date: Thu, 01 Dec 2016 18:28:56 -0500 Message-ID: <20649.1480634936@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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: > On 12/1/16 1:09 PM, Tom Lane wrote: >> I think that the patch I wrote is good cleanup, so I'm still inclined >> to apply it in HEAD, but I no longer think it's fixing any case that's >> significant in the field. I wonder if you have a counterexample? > No; I'm sure I've run into this because of a temp object other than a > table (probably a function, though possibly something else). Makes sense. The fact that we protect against this for temp tables and views would make it all the more surprising when you get bit by some less-common object type. 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