Multiple Schema and extensions

From: Alan Nilsson <anilsson(at)apple(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Multiple Schema and extensions
Date: 2012-09-26 05:02:37
Message-ID: EFCC5DA0-F2E6-48B4-8727-3154A3F1A007@apple.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is it the case that extensions can be added to only one schema? If so, what is the recommended practice for accessing a function from an extension in multiple schemas?

Is it *ok* to load the extension in the pg_catalog schema so functions can be accessed by unqualified names? Is it *better* to have a separate schema for functions and use qualified names to access? What is the general accepted practice?

As a side note:
ALTER EXTENSION foo ADD SCHEMA bar
What the heck does this do? AFICS, it has no effect on the visibility of an extension function in the *added* schema.

thanks
alan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Amit Kapila 2012-09-26 06:09:53 Re: In one of negative test row-level trigger results into loop
Previous Message Alban Hertroys 2012-09-26 04:27:48 Re: In one of negative test row-level trigger results into loop