• Tom Lane's avatar
    Disallow extensions from owning the schema they are assigned to. · 4d642b59
    Tom Lane authored
    This situation creates a dependency loop that confuses pg_dump and probably
    other things.  Moreover, since the mental model is that the extension
    "contains" schemas it owns, but "is contained in" its extschema (even
    though neither is strictly true), having both true at once is confusing for
    people too.  So prevent the situation from being set up.
    
    Reported and patched by Thom Brown.  Back-patch to 9.1 where extensions
    were added.
    4d642b59
extension.c 78.5 KB