Re: Extensions in schemas

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Extensions in schemas
Date: 2011-05-16 15:22:30
Message-ID: m2fwoept55.fsf@2ndQuadrant.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> Is there any particular reason why we can't/don't auto-create schema
> bar when you run "CREATE EXTENSION foo SCHEMA bar"?

We do it when the schema is given in the control file. I'm not sure off
hand but we maybe only do that when the extension is *not* relocatable.

The idea is that if you're asking for an extension to live in a given
schema, it must already exists, whereas if the extension's author is the
one who says which schema it must live in, then the system is kind
enough to make that happen (and mark the schema as being part of the
extension, I think).

Yeah, I forgot to git pull on this laptop I bring with me at
conferences, so I can't read the sources to tell you for sure. Expect
me to fix that after landing :)

--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-05-16 15:48:14 Re: pg_upgrade permission check
Previous Message Leonardo Francalanci 2011-05-16 15:20:11 use less space in xl_xact_commit patch