Re: CREATE EXTENSION not adding extension on second SCHEMA - Mailing list pgsql-docs

From Tom Lane
Subject Re: CREATE EXTENSION not adding extension on second SCHEMA
Date
Msg-id 184838.1654011177@sss.pgh.pa.us
Whole thread Raw
In response to Re: CREATE EXTENSION not adding extension on second SCHEMA  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: CREATE EXTENSION not adding extension on second SCHEMA  (Gustavo <gustavomilc@gmail.com>)
List pgsql-docs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tuesday, May 31, 2022, PG Doc comments form <noreply@postgresql.org>
> wrote:
>> I'm trying to add an extension to two schemas that I have in my DB.

> It doesn’t work and isn’t documented as something that does work.  I really
> don’t see a need to say you cannot install the same extension multiple
> 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



pgsql-docs by date:

Previous
From: Nikhil Shetty
Date:
Subject: Fwd: Adding more detail to pg_upgrade documentation
Next
From: "Daniel Westermann (DWE)"
Date:
Subject: Re: Can we still dump version 7?