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 1oszQH-0006kJ-7S for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Nov 2022 04:44:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oszQF-00051u-AB for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Nov 2022 04:44:15 +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 1oszQE-00051k-U0 for pgsql-hackers@lists.postgresql.org; Thu, 10 Nov 2022 04:44:15 +0000 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oszQC-0006eO-1u for pgsql-hackers@postgresql.org; Thu, 10 Nov 2022 04:44:14 +0000 Received: by mail-qk1-x72d.google.com with SMTP id i9so508164qki.10 for ; Wed, 09 Nov 2022 20:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pcorp-us.20210112.gappssmtp.com; s=20210112; h=content-language:thread-index:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=WwK9v4LK7nySGuJUVC/9YmjLsS/YZxc1fbI3n7UIij4=; b=GMG1SN7/8GlihMuOQPoA6kqaha3Jh5WuMYz6oB9TIEiDK7IqV0lp2hbZJZa7rJXVb7 mzh33Hbt996erbDM6LRaR1QYST0jslpXfG0HwtP/3GjbAo7hD+ysZT9BAzv3sld2s1MF 1KoQHTkbHaWG+UpwXyhARUAVLKgnAgjNQnvyiMZkttabkNVYUwZQHg/b82/RkNB76tMs sq0oscD4Mx9euvFGw2JE22VD3eQf8/uGqq6/BJBN4J3TJJX1ZYl2pXKw1Uakp6VQy6vp YQBnDwyB9RfGrvo77F+MSNaqzAug1AvVY1qAt3hsNE9WGLvie3WawVOM0dljyrtQQSO9 4vfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-language:thread-index:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WwK9v4LK7nySGuJUVC/9YmjLsS/YZxc1fbI3n7UIij4=; b=fgf6aB+1OqRdwKSn3/fYr35THPnbVL9qULGTsCgdNL4voE8Gevgc3OesIGunn/MRwI nbAtAONd1TdfJYGllJqxIecAFNKt819j/e9yykacedGByVaumpElPc/Nzkcml22h9aIC 0xE5YM8pEkNycM+8D7LvkQAAUBPWS1uQX1ZVIyh4GJy/VXHnviFAfpZ0G9x0Byveunqs u/5og0rr4kK8m2uBLCYSSJ0xWkBrVuZjFeLWZLeK+445BtJxzx1zQONQ5HFan4pneTNB fjHN2Us4+fL2cKZ1v1ivPCoiZIXKhYI8u5EHCZFps9qU5UVRSnVZTG9X8eHi8UihG7YM 1Vhg== X-Gm-Message-State: ACrzQf3AaO2C8rguHnqre5qvHb8t5Wyx4gQxZR5crG8PKLD/eYvDJjy4 TSrjRjhHStthsrTenamq9VZoOQtZu9Atfg== X-Google-Smtp-Source: AMsMyM44V4VGmI0tM/+RX6WhkhyktyPM+tzpimAIXTB1oDFxUsjbhu9U7WBXKiHAgPKMx0NBqgdb5Q== X-Received: by 2002:a05:620a:4897:b0:6fa:9c0b:5079 with SMTP id ea23-20020a05620a489700b006fa9c0b5079mr20719545qkb.478.1668055450310; Wed, 09 Nov 2022 20:44:10 -0800 (PST) Received: from F (50-78-240-110-static.hfc.comcastbusiness.net. [50.78.240.110]) by smtp.gmail.com with ESMTPSA id a3-20020ac84d83000000b003a530a32f67sm10528072qtw.65.2022.11.09.20.44.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Nov 2022 20:44:09 -0800 (PST) From: "Regina Obe" To: "'Tom Lane'" Cc: References: <003001d8f4ae$402282c0$c0678840$@pcorp.us> <79300.1668052170@sss.pgh.pa.us> In-Reply-To: <79300.1668052170@sss.pgh.pa.us> Subject: RE: Ability to reference other extensions by schema in extension scripts Date: Wed, 9 Nov 2022 23:44:07 -0500 Message-ID: <004501d8f4bf$1213fba0$363bf2e0$@pcorp.us> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQFgXZxpr0yOB+9uS1Xwc1lFBKthIAHDgsBQrxqmPDA= Content-Language: en-us List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > "Regina Obe" writes: > > My proposal is this. If you think it's a good enough idea I can work > > up a patch for this. > > Extensions currently are allowed to specify a requires in the control file. > > I propose to use this information, to allow replacement of phrases > > @extschema_nameofextension@ as a variable, where nameofextension has > > to be one of the extensions listed in the requires. > > I have a distinct sense of deja vu here. I think this idea, or something > isomorphic to it, was previously discussed with some other syntax details. > I'm too lazy to go searching the archives right now, but I suggest that you try to > find that discussion and see if the discussed syntax seems better or worse than > what you mention. > > I think it might've been along the line of @extschema:nameofextension@, > which seems like it might be superior because colon isn't a valid identifier > character so there's less risk of ambiguity. > > regards, tom lane I found the old discussion I recalled having and Stephen had suggested using @extschema{'postgis'}@ On this thread -- https://www.postgresql.org/message-id/20160425232251.GR10850@tamriel.snowman .net Is that the one you remember? Thanks, Regina