Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aK5go-0001Bv-1z for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jan 2016 14:49:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aK5gn-0004xU-4H for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jan 2016 14:49:21 +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) (envelope-from ) id 1aK5gm-0004xD-C9 for pgsql-hackers@postgresql.org; Fri, 15 Jan 2016 14:49:20 +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) (envelope-from ) id 1aK5gj-000418-Oa for pgsql-hackers@postgresql.org; Fri, 15 Jan 2016 14:49:19 +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 u0FEnEiJ018109; Fri, 15 Jan 2016 09:49:14 -0500 From: Tom Lane To: Abhijit Menon-Sen cc: pgsql-hackers@postgresql.org Subject: Re: dealing with extension dependencies that aren't quite 'e' In-reply-to: <20160115062649.GA5068@toroid.org> References: <20160115062649.GA5068@toroid.org> Comments: In-reply-to Abhijit Menon-Sen message dated "Fri, 15 Jan 2016 11:56:49 +0530" Date: Fri, 15 Jan 2016 09:49:14 -0500 Message-ID: <18108.1452869354@sss.pgh.pa.us> X-Pg-Spam-Score: -1.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 Abhijit Menon-Sen writes: > I'm looking at an extension that creates some triggers (on user tables) > dynamically (i.e., not during CREATE EXTENSION, but afterwards). The > author has two problems with it: > * «DROP EXTENSION ext» won't work without adding CASCADE, which is an > (admittedly relatively minor) inconvenience to users. I am not sure why that's a bad thing. > * More importantly, pg_dump will dump all those trigger definitions, > which is inappropriate in this case because the extension will try > to create them. Or that. Shouldn't pg_dump be expected to restore the same state that was there before? IOW, what is the argument that this doesn't just represent poorly-thought-through extension behavior? 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