public inbox for [email protected]
help / color / mirror / Atom feedFrom: jian he <[email protected]>
To: [email protected]
To: [email protected]
Subject: Re: CREATE EXTENSION not adding extension on second SCHEMA
Date: Tue, 31 May 2022 20:51:55 +0530
Message-ID: <CACJufxHMmW8BUrWirsXoSeK4rSYL=Pf-q6dZVRj_K09sgLQBgQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
quote from manual:
> CREATE EXTENSION loads a new extension into the current database. There
> must not be an extension of the same name already loaded.
>
You can try to alter[1] the extension to make it located to another schema.
[1]: https://www.postgresql.org/docs/14/sql-alterextension.html
On Tue, May 31, 2022 at 8:39 PM PG Doc comments form <[email protected]>
wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/14/sql-createextension.html
> Description:
>
> I'm trying to add an extension to two schemas that I have in my DB.
>
> steps:
>
> 1)
>
> CREATE EXTENSION unaccent with SCHEMA public;
>
> response: OK.
>
> 2)
>
> CREATE EXTENSION unaccent with SCHEMA public_test;
>
> response: SQL Error [42710]: ERROR: extension "unaccent" already exists
>
> I tryed:
>
> SET search_path = public_test;
> CREATE EXTENSION unaccent;
>
> and the response is: response: SQL Error [42710]: ERROR: extension
> "unaccent" already exists
>
--
I recommend David Deutsch's <<The Beginning of Infinity>>
Jian
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: CREATE EXTENSION not adding extension on second SCHEMA
In-Reply-To: <CACJufxHMmW8BUrWirsXoSeK4rSYL=Pf-q6dZVRj_K09sgLQBgQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox