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 1pckcA-0008QL-NY for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Mar 2023 10:13:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pckc8-0000to-V5 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Mar 2023 10:13:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pckc8-0000te-Lc for pgsql-hackers@lists.postgresql.org; Thu, 16 Mar 2023 10:13:40 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pckc6-0006FP-0R for pgsql-hackers@lists.postgresql.org; Thu, 16 Mar 2023 10:13:40 +0000 Received: (Authenticated sender: strk@kbt.io) by mail.gandi.net (Postfix) with ESMTPSA id EF2174000A; Thu, 16 Mar 2023 10:13:33 +0000 (UTC) Date: Thu, 16 Mar 2023 11:14:18 +0100 From: Sandro Santilli Sender: strk@kbt.io To: Regina Obe Cc: 'Tom Lane' , "'Gregory Stark (as CFM)'" , pgsql-hackers@lists.postgresql.org, 'Regina Obe' Subject: Re: Ability to reference other extensions by schema in extension scripts Message-ID: <20230316101418.2a32erangr3nvnuk@c19> References: <005401d95083$26ca24a0$745e6de0$@pcorp.us> <995823.1678478825@sss.pgh.pa.us> <004b01d95394$16123ee0$4236bca0$@pcorp.us> <1012975.1678486476@sss.pgh.pa.us> <005501d953a0$906c4df0$b144e9d0$@pcorp.us> <1019515.1678488437@sss.pgh.pa.us> <001d01d953f2$099b6430$1cd22c90$@pcorp.us> <20230313115916.ivvg4tj54szeu5rj@c19> <000701d955f6$dfaaf8a0$9f00e9e0$@pcorp.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701d955f6$dfaaf8a0$9f00e9e0$@pcorp.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 13, 2023 at 05:57:57PM -0400, Regina Obe wrote: > > Attached is a slightly revised patch to fix the extra whitespace in the > extend.gml document that Sandro noted to me. Thanks Regina. I've tested attached patch (md5 0b652a8271fc7e71ed5f712ac162a0ef) against current master (hash 4ef1be5a0b676a9f030cc2e4837f4b5650ecb069). The patch applies cleanly, builds cleanly, regresses cleanly. I've also run my quick test and I'm satisfied with it: test=# create extension ext2 cascade; NOTICE: installing required extension "ext1" CREATE EXTENSION test=# select ext2log('h'); ext1: ext2: h test=# alter extension ext1 set schema n1; ERROR: cannot SET SCHEMA of extension ext1 because other extensions prevent it DETAIL: extension ext2 prevents relocation of extension ext1 test=# drop extension ext2; DROP EXTENSION test=# alter extension ext1 set schema n1; ALTER EXTENSION test=# create extension ext2; CREATE EXTENSION test=# select ext2log('h'); ext1: ext2: h --strk;