Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fDZZl-0006gR-1f for pgsql-general@arkaria.postgresql.org; Tue, 01 May 2018 18:00:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fDZZj-0004VA-9Y for pgsql-general@arkaria.postgresql.org; Tue, 01 May 2018 18:00:27 +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.89) (envelope-from ) id 1fDZZj-0004V1-1A for pgsql-general@lists.postgresql.org; Tue, 01 May 2018 18:00:27 +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.89) (envelope-from ) id 1fDZZg-0002Ir-8k for pgsql-general@lists.postgresql.org; Tue, 01 May 2018 18:00:26 +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 w41I0Lsb005503; Tue, 1 May 2018 14:00:21 -0400 From: Tom Lane To: Eric Hanson cc: PostgreSQL General Subject: Re: extension dependencies with 'requires' In-reply-to: References: Comments: In-reply-to Eric Hanson message dated "Tue, 01 May 2018 17:34:41 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5500.1525197621.1@sss.pgh.pa.us> Date: Tue, 01 May 2018 14:00:21 -0400 Message-ID: <5501.1525197621@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Eric Hanson writes: > I'm trying to author an extension and running into troubles with > dependencies. The extension depends on the uuid-ossp, pgcrypto and > postgres_fdw extensions, but I would like the dependencies to be installed > in the public schema, though the extension itself lives in its own schema. > Is there a way to use CREATE EXTENSION ... CASCADE and specify in the > control file which schema the dependencies are installed in? Afraid not. CASCADE will pass down the same target-schema option to the child CREATE EXTENSION operations that appeared in the initial command. regards, tom lane