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 1nw3rn-0005sv-SB for pgsql-docs@arkaria.postgresql.org; Tue, 31 May 2022 15:33:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nw3rl-0004XQ-Uc for pgsql-docs@arkaria.postgresql.org; Tue, 31 May 2022 15:33:05 +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 1nw3rl-0004WA-MU for pgsql-docs@lists.postgresql.org; Tue, 31 May 2022 15:33:05 +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 1nw3rf-00007A-6r for pgsql-docs@lists.postgresql.org; Tue, 31 May 2022 15:33:04 +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 24VFWvOf184839; Tue, 31 May 2022 11:32:57 -0400 From: Tom Lane To: "David G. Johnston" cc: "gustavomilc@gmail.com" , "pgsql-docs@lists.postgresql.org" Subject: Re: CREATE EXTENSION not adding extension on second SCHEMA In-reply-to: References: <165400680669.573549.5553646427767597793@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Tue, 31 May 2022 08:24:33 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <184837.1654011177.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 31 May 2022 11:32:57 -0400 Message-ID: <184838.1654011177@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Tuesday, May 31, 2022, PG Doc comments form > wrote: >> I'm trying to add an extension to two schemas that I have in my DB. > It doesn=E2=80=99t work and isn=E2=80=99t documented as something that d= oes work. I really > don=E2=80=99t see a need to say you cannot install the same extension mu= ltiple > times explicitly - the self-describing error seems sufficient. The CREATE EXTENSION reference page says "There must not be an extension of the same name already loaded." and later "Remember that the extension itself is not considered to be within any schema: extensions have unqualified names that must be unique database-wide. But objects belonging to the extension can be within schemas." I hardly see how we could make this any plainer. regards, tom lane