Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 4B30619DE834 for ; Wed, 7 Mar 2012 11:59:26 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S5JGu-0004dJ-Gn for pgsql-bugs@postgresql.org; Wed, 07 Mar 2012 15:59:25 +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 q27Fx9W6008168; Wed, 7 Mar 2012 10:59:09 -0500 (EST) To: Dimitri Fontaine cc: Phil Sorber , pgsql-bugs@postgresql.org Subject: Re: Extension tracking temp table and causing update failure In-reply-to: <87linc93iq.fsf@hi-media-techno.com> References: <21101.1331071837@sss.pgh.pa.us> <87linc93iq.fsf@hi-media-techno.com> Comments: In-reply-to Dimitri Fontaine message dated "Wed, 07 Mar 2012 10:14:21 +0100" Date: Wed, 07 Mar 2012 10:59:09 -0500 Message-ID: <8167.1331135949@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/54 X-Sequence-Number: 32615 Dimitri Fontaine writes: > Tom Lane writes: >> It would also have the effect that explicit DROPs of member objects in >> extension scripts could be done without an explicit ALTER EXTENSION DROP >> first. I think we'd originally decided that requiring the ALTER was a >> good safety feature, but is it really more than nanny-ism? The intent >> of a DROP command seems pretty clear. > What I remember we decided is that you can't DROP any single object of > an extension alone, you have to drop the extension wholesale or not at > all. So that you first “detach” the object from the extension then drop > it. That makes perfect sense in general but is a useless restriction > when executing an extension's script. Actually, on further thought I am not sure we really considered the idea of a DROP in an extension script at all --- it's not something that you would normally expect an extension to want to do for an exported object, and I'm pretty sure none of us thought about transient objects. But anyway, we all seem to agree that this seems like a reasonable fix, so I will look into making it happen. regards, tom lane