Dimitri Fontaine <dimi...@2ndquadrant.fr> writes: > Tom Lane <t...@sss.pgh.pa.us> writes: >> Here's another question: if an extension's objects live (mostly or >> entirely) in schema X, what happens if the possibly-unprivileged owner >> of schema X decides to drop it? If the extension itself is considered >> to live within the schema, then "the whole extension goes away" seems >> like a natural answer. If not, you've got some problems.
> Currently, creating an extension is superuser only. So the owner of > those objects is a superuser. My understanding is that the drop schema > will then fail without any more code. You're mistaken, and this case definitely does need more thought. A schema owner is presumed to have the unconditional right to drop anything in his schema, whether he owns it or not. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers