You cannot install extensions several times for each database. Citation Guide for CREATE EXTENSION :
Remember that the extension itself is not considered a schema: extensions have unqualified names that must be unique databases on a scale. But objects related to the extension may be within the scope of the schemes.
If you do not want to include public in the search_path , set the "public" extensions to the selected scheme (example: extensions ). I would use one scheme for all of them, and not a separate scheme for each extension. There are a lot of them. CREATE EXTENSION offers the ability to install an existing circuit of your choice:
CREATE EXTENSION hstore SCHEMA extensions;
And make sure the schema is included in the search_path users who might want to use it.
- How does the identifier identifier search_path and the "current scheme"
The data warehouse does not affect the schema in which the extension is located at all.
Erwin brandstetter
source share