Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pal0g-0002xu-HY for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2023 22:14:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pal0e-0004uv-SK for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2023 22:14:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pal0e-0004ul-JA for pgsql-hackers@lists.postgresql.org; Fri, 10 Mar 2023 22:14:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pal0c-0006Oc-5W for pgsql-hackers@lists.postgresql.org; Fri, 10 Mar 2023 22:14:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 32AMEaBL1012976; Fri, 10 Mar 2023 17:14:36 -0500 From: Tom Lane To: "Regina Obe" cc: "'Gregory Stark \(as CFM\)'" , "'Sandro Santilli'" , pgsql-hackers@lists.postgresql.org, "'Regina Obe'" Subject: Re: Ability to reference other extensions by schema in extension scripts In-reply-to: <004b01d95394$16123ee0$4236bca0$@pcorp.us> References: <003001d8f4ae$402282c0$c0678840$@pcorp.us> <000401d94bc8$48dff700$da9fe500$@pcorp.us> <167762779361.628976.14009177203307564086.pgcf@coridan.postgresql.org> <005401d95083$26ca24a0$745e6de0$@pcorp.us> <995823.1678478825@sss.pgh.pa.us> <004b01d95394$16123ee0$4236bca0$@pcorp.us> Comments: In-reply-to "Regina Obe" message dated "Fri, 10 Mar 2023 16:05:46 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1012974.1678486476.1@sss.pgh.pa.us> Date: Fri, 10 Mar 2023 17:14:36 -0500 Message-ID: <1012975.1678486476@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Regina Obe" writes: >> If you want to work harder, perhaps a reasonable way to deal with the issue >> would be to allow dependent extensions to declare that they don't want your >> extension relocated. But I do not think it's okay to make that the default >> behavior, much less the only behavior. > - the main issue I ran into is I have to introduce another dependency type > or go with Sandro's idea of using refsubobjid for this purpose. No, pg_depend is not the thing to use for this. I was thinking of a new field in the extension's control file, right beside where it says it's dependent on such-and-such extensions in the first place. Say like requires = 'extfoo, extbar' no_relocate = 'extfoo' > So you are proposing I change the execute_extension_scripts input args to > take more args? Why not? It's local to that file, so you won't break anything. regards, tom lane